Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Small stutters when running on phone

Author
Message
Satchmo
18
Years of Service
User Offline
Joined: 29th May 2005
Location:
Posted: 7th Mar 2014 03:26
Been noticing really tiny stutters when running my app on my nexus 4. The fps is a solid 60 fps but every few seconds you can see a tiny stutter as things move across the screen, with the fps maybe going to 57-58 then immediately back to 60. There is nothing in the code that could cause this as it is bare bones.

Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 7th Mar 2014 09:04
maybe some background services.
try disable/close it and see what happens.



AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670
Auger
12
Years of Service
User Offline
Joined: 21st Aug 2011
Location: Out There
Posted: 7th Mar 2014 19:56
You using box2d ? I've noticed the same problem on both phone and tablets. Runs fine on pc though. I'm at work but later ill post some code that shows it.
Auger
12
Years of Service
User Offline
Joined: 21st Aug 2011
Location: Out There
Posted: 9th Mar 2014 00:02
Ok sorry for the delay here's some code that shows the slowdown jitters on Android using box2d. if you run this on the pc it'll be fine but on any tablet or phone it'll stutter.




Auger
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 9th Mar 2014 14:27
I sadly recommend you to lock the framerate to 30 on any pad or phone.

This is simply because you will get drops on any arm device with background services and other things you cant control.

I noticed this on my platformer as box 2d do really not like if the framerate changes to much at some places.

And keep in mind that the on screen fps you get from agk command is smoothed and the fps could have bin a lot lower then it displays.

This is many times the case when you have ad banners etc that gets updated during play.

Android 2.3 , ZTE Skate , 480x800 , 800 mhz , Samsung Galaxy Y , 240x320 , 832 mhz , Sony ericson arc 480x854 , 1 ghz
Android 4.0 , Dmtech 3g 9738B , 1024x768 , 9.7 inches , 1.2 ghz

Login to post a reply

Server time is: 2024-05-03 02:41:31
Your offset time is: 2024-05-03 02:41:31