PhoneGap app run 50-60 FPS and drops to 11-15 fps

Get help using Construct 2

Post » Wed Dec 19, 2012 6:53 am

I am seeing a strange behavior with the Phone Gap build of my app , where when the app is launched first time after it' installed, the app seems to run at 50-60 FPS and then if i stop the app and run it again it goes to really low t 11-15 FPS. Kind of really strange why it happens , seems like first time hardware acceleration seems to be enabled and further on it seems to be disabled ?

This seems to happen in IOS 6 on iPhone 5, but doesn't seems to happen on Android 4.0 where the FPS is always less abour 10FPS.

Has anyone had similar experience ? btw, i am compiling the apps the using the Phone Gap cloud compiler.

if this works consistently then i can use phonegap instead of appMobi or cocoonJS.tringio2012-12-19 06:54:36
B
16
S
4
Posts: 248
Reputation: 2,267

Post » Wed Dec 19, 2012 3:13 pm

Hardware acceleration is not enabled on PhoneGap (at least for iOS and Android) so it is rare to see framerates above 20FPS. This is why we currently strongly recommend CocoonJS or appMobi for mobile publishing instead.

You might be seeing the 50-60 FPS measurement because nothing on the screen is moving. If the layout does not change in any way, then C2 will not redraw the screen (since it would be a waste of time to do so). In this case the framerate is a useless figure, because it's just looping round doing nothing 60 times a second.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Wed Dec 19, 2012 11:20 pm

i am pretty much doing the same thing in both cases, will update with a video demo soon.
B
16
S
4
Posts: 248
Reputation: 2,267

Post » Thu Dec 20, 2012 4:31 pm

Here is the youtube demo, http://www.youtube.com/watch?v=87TJEuROTxw and the capx https://dl.dropbox.com/u/80050021/SmoothScroll_PhoneGap.capx , https://dl.dropbox.com/u/80050021/SmoothScroll_PhoneGap.capx where you can see the FPS drops on the subsequent runs.
B
16
S
4
Posts: 248
Reputation: 2,267


Return to How do I....?

Who is online

Users browsing this forum: Matthew de, onzephyr, Yahoo [Bot] and 0 guests