Skip to main content
Inspiring
September 1, 2011
Question

Low framerate at first run on iOS

  • September 1, 2011
  • 1 reply
  • 551 views

Hi all,

I find a reason for the following (pretty random) behavior:

Occasionally an app I'm working on (avg. framerate on iPad 1: high 30's, 40's depending on what's going on) has a whopping 2 fps after it is installed and run for the first time. I've seen it a few times while testing as has the customer. However, I cannot find a reason nor a way to reproduce at will.

The app uses bitmaps only, some sound and Box2D for bouncing beads against each other (if that helps)

Has anyone seen this before?

Thanks in advance,

Manno

This topic has been closed for replies.

1 reply

Participating Frequently
September 1, 2011

Hi,

Could you elaborate what you are doing when your app initializes? Are you loading some assets from app:? Does it happen on every launch or just the first launch after you install the application?

Regards,

Sanika

Inspiring
September 1, 2011

Hi Sanika,

I'd like to think not much special:

I set the stagequality to low

Instantiate two classes, one of them is nothing more than a screensized bitmap serving as a lid/cover.

The most complicated class sets up a box2D world, and adds some more classes mostly holding bitmaps that the box2d world will move or that server as layers in between which stuff moves.

All assets are bitmaps and embedded by the metatag [Embed]

The box2D world consists of three sensors and approx. 10 boxes. Other items (circles) are added after interaction.

Then a timer starts for the box2d updates.

It happens pretty rare but the low framerate is persistent when it does, not like it comes around after a few secs of initialization. My client thought it could have to do with background activity but IMO that's hard to judge since you never really can tell what goes on behind your own app...

I'll try my best to get some more detail.

Kind regards,

Manno