Hi,
I've created a small game where I am using a lot of every ticks to update the score and to see the count of objects to end the game. I also have many cases where I want to use "Every tick"
I adding a lot of actions will slow the game ?
Thanks.
Why not do it on on create/destroy and when you score something ? Or if it's a problem, update it using every x seconds (say every 1/10 second ?)
Develop games in your browser. Powerful, performant & highly capable.
Yeah, I tried to do on destroy..But I am comparing a variable and it is taking some time and is not triggering immediately, in the mean while some more objects are getting destroyed.
Destroy is really a "request to destroy" If you want to have an accurate number of active objects you will have to manage the count yourself.
Answer your own performance questions with measurements
Thank you