Frame Rate drops off after resuming game on Android

Home / Forums / Marmalade Archive / General Development Questions / Frame Rate drops off after resuming game on Android
11 replies [Last post]
by: iMr
Status: Offline
Joined: 2011-01-26

Hi,

I have a disturbing issue on Android, the frame rate drops off when I resume the game, it doesn't happen all the time, but usually if a call is coming during the game is active or if I let the device go into the lock screen and then resume...

Also, it may get fixed by itself (frame rate rise) after the second or third time of letting the device go into the lock screen.

Did anyone encounter this?
Does Marmalade have some bug tracking system?

Device: Galaxy S3
SDK: Marmalade 6.0.5

Thanks,
Guy

by: Danny Chapman
Status: Offline
Joined: 2011-11-03
I get something similar. For

I get something similar. For my main "game" mode I use OpenGL. In this mode sometimes the frame rate is really quite bad (feels like 10FPS instead of around 30). However, if I drop into my settings mode, which uses IwUI and then back into game, the FPS jumps up again.

This happens around one time in twenty or so. I really can't see how it's anything I'm doing. No idea if it's related.

by: iMr
Status: Offline
Joined: 2011-01-26
It looks like it is related,

It looks like it is related, I upgraded to 6.0.5 because the release notes states that it has a "better resume functionality on Android". I thought that this bug got fixed but it didn't.

My game runs at 60 FPS, the Framerate drops to 40 FPS when the bug happens.

In my opinion, this bug's severity is CRITICAL, something is probably being messed up in the OpenGL state. Can someone on the Marmalade team participate?

by: iMr
Status: Offline
Joined: 2011-01-26
I tried and it happen in the

I tried and it happen in the examples that comes with Marmalade 6.0.5 as well...

Preparation:
1. Open Iw2DImages example
2. Change app.icf (add DisplayFramerate=1 under [gx])
3. Change MS_PER_FRAME to (1000 / 61) (ExamplesCore/ExamplesMain.cpp)
4. deploy release or debug version to an Android device (Galaxy S3)

How to reproduce (1st method):
1. Launch app, frame rate indicator shows 60 fps
2. Let the device go into the lock screen
3. Press the home button (on the device)
4. swipe code
5. the frame rate indicator in app shows 40 fps

How to reproduce (2nd method):
1. Launch app, frame rate indicator shows 60 fps
2. Call device from another device
3. Answer call, wait 10 seconds, hang-up
4. the frame rate indicator in app shows 40 fps

* You may need to perform any one of the methods 3-5 times to get the frame rate to drop to 40fps.
** Tested only on Galaxy S3 (Android 4.0.4), please test on other devices to see it's not device specific

by: iMr
Status: Offline
Joined: 2011-01-26
So... Does Marmalade going to

So... Does Marmalade going to do anything with this?

I took the time to wrote this post, I submitted a bug and no one from Marmalade relate to this, even an answer like "We'll check it" will be good enough.

by: Lester-Madden
Status: Offline
Joined: 2012-05-08
Thanks iMr, we have your bug

Thanks iMr, we have your bug form and it is in the queue to be reproduced. once we have done that we will post more information

by: iMr
Status: Offline
Joined: 2011-01-26
Ok, thanks.

Ok, thanks.

Can you tell if that happens on other devices as well?

by: Lester-Madden
Status: Offline
Joined: 2012-05-08
@iMr

@iMr

I think it applies to Android as a whole. If it is the bug I think it is, then its fixed in 6.0.6 due on Friday.

by: iMr
Status: Offline
Joined: 2011-01-26
Thanks Lester,

Thanks Lester,

Can you tell what was affected exactly?

I'm in the process of moving from Iw2D to OpenGL ES 2.0

by: iMr
Status: Offline
Joined: 2011-01-26
I can reproduce this on iwgl

I can reproduce this on iwgl as well...

by: Lester-Madden
Status: Offline
Joined: 2012-05-08
we are investigating as

we are investigating as [MAINT-1063] on bug tracker

by: sree55
Status: Offline
Joined: 2012-10-23
Submit your app through the

Submit your app through the developer's center when you are finished, and wait for approval. Create a website for customers with information about your app, as well as a support email address so it's easy for them to report problems.
mobile app development

Latest Posts

Latest Comments

Top Contributors

  • amanda
  • riaan
  • alexand3
  • alexand4
  • alexand7
  • alexand889
  • alexand12191
  • remote9991
  • remote9992
  • test