How much impact does every tick has on performance?

Discuss game development design and post your game ideas

Post » Fri Aug 14, 2015 6:16 am

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.
B
8
S
1
Posts: 40
Reputation: 868

Post » Fri Aug 14, 2015 7:02 am

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 ?)
My tutorial through development blog is at http://myconstruct2dev.blogspot.co.uk/
B
12
S
3
Posts: 221
Reputation: 1,328

Post » Fri Aug 14, 2015 7:25 am

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.
B
8
S
1
Posts: 40
Reputation: 868

Post » Fri Aug 14, 2015 8:11 am

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.
My tutorial through development blog is at http://myconstruct2dev.blogspot.co.uk/
B
12
S
3
Posts: 221
Reputation: 1,328

Post » Fri Aug 14, 2015 10:17 am

Scirra Founder
B
387
S
230
G
87
Posts: 24,249
Reputation: 192,240



Return to Game Development, Design & Ideas

Who is online

Users browsing this forum: No registered users and 0 guests