Phone performance issue

Discussion and feedback on Construct 2

Post » Thu Apr 18, 2013 1:32 am

[QUOTE=farflamex] The ship is drawn every frame either way though? Even if it just sits still, it's still redrawn.[/QUOTE]

What Ashley is saying, is that when no objects are moving/changing in any way, even though the image remains on the screen, the game/GPU isn't actually drawing anything, it's just letting the previously drawn image linger, which means less work and often higher fps. It's possible touching the screen could be causing it to redraw the screen.

Try adding a sprite that does nothing but rotate every tick, then try the test again. What happens?Arima2013-04-18 01:34:13
Posts: 3,002
Reputation: 27,266

Post » Thu Apr 18, 2013 2:13 am

It's not just a ship on a screen which sits still. There are other ships and sprites which are constantly moving, so the entire screen is being redrawn either way.

Take the example vertical shooter. Add an FPS text to it.

The enemy ships constantly move and your own ship constantly fires. So the screen is being refreshed and redrawn correctly. My phone shows 50 fps if I don't touch the screen. If I touch the screen and the ship starts to move, it drops to 35.

Even if I remove the actual moving code and just have 'Is in touch' and then have zero actions, it still drops to 35, just by touching the screen. If I HOLD a certain location, it moves back to 50fps, but if I move my finger around the screen, it drops to 35 or less (even though now your ship doesn't move because I've removed the code, but the other ships/bullets are still moving).
Posts: 446
Reputation: 5,633


Return to Construct 2 General

Who is online

Users browsing this forum: mullock, nvbenegra and 11 guests