Question regarding Every Tick events

Get help using Construct 2

Post » Tue Mar 18, 2014 7:43 am

I need some clarification.
I have several different objects moving on every tick.
Does every tick still checks or calculates something if objects are destroyed?
I mean does that event still uses cpu resources?

Why i am asking this... iw noticed that if i leave my tablet and mine game active it drains power quickly and device is really hot...
so it must be calculating something i guess?

Thanks!
B
29
S
11
G
2
Posts: 705
Reputation: 5,189

Post » Tue Mar 18, 2014 7:47 am

Depends on your "every tick" event.
I always recommend to find a better solution than "every tick".
B
14
S
3
G
1
Posts: 255
Reputation: 2,027

Post » Tue Mar 18, 2014 7:54 am

hm... what do you propose?
Game is scroller so everything that gets created needs to scroll acordingly so i'w put all objects under every tick.
what else can i do?

thanx!
B
29
S
11
G
2
Posts: 705
Reputation: 5,189

Post » Tue Mar 18, 2014 8:57 am

Are you sure you are destroying objects when they leave the layout?
Sometimes it's possible to further optimise "every tick" events, but sometimes it's not. Depends on the aproach you took.
Try running the game in debug mode (f6) and check the performance tab. You could put your events in groups and see which group is creating the most load. So you could put your "every tick" events under a group, and see how much of the performance is affected by them.
Hope it helps.
B
18
S
4
G
1
Posts: 332
Reputation: 3,149

Post » Tue Mar 18, 2014 10:02 am

thanx, ill look into it.
B
29
S
11
G
2
Posts: 705
Reputation: 5,189


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 11 guests