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

Get help using Construct 2

Post » Sun Oct 11, 2015 5:24 pm

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?
B
8
S
1
Posts: 54
Reputation: 824

Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], newt and 10 guests