Is it good to put 'every x seconds' everywhere?

0 favourites
  • 1 posts
From the Asset Store
Like tourists, Travel around the world as fast as you can!
  • I have things in my game that need to happen constantly and would usually happen every tick, e.g. the character's eyes looking around at stuff in the environment, the player's cursor-crosshair-thing jumping to the nearest usable object, etc.

    To try and improve optimization, I've added 'every 1/10 seconds' or 'every 1/6 seconds' and similar things to the conditions, so that the computer doesn't need to do everything on every frame. However, I don't know whether this is actually a good idea. On the one hand, the computer should be doing fewer calculations and stuff every tick, but on the other hand maybe it's actually really performance-intensive to have the computer keeping track of all these different timers? I dunno.

    Is this a good idea?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)