Mircea Ispas
Mircea Ispas

Reputation: 20800

FPS stabilization iPhone

I have, most of the time, 50+ FPS, but when I load resources(background tread) it drops to 30 FPS. I want to have constant FPS, 30 or even 20, it's not a problem for me. What is the best way to make FPS constant?

Upvotes: 1

Views: 296

Answers (2)

Moshe
Moshe

Reputation: 58107

You should be using time-based redrawing, instead of frame based drawing. Michael Daley's book has some excellent info on this.

Also, try loading as many of your resources as possible in a spritesheet.

Upvotes: 1

madmik3
madmik3

Reputation: 6983

Not really sure if there is an established method, but frame rate in this case is the frequency at which you redraw. 20 FPS is a 50 millisecond redraw rate. One method would be to only redraw if the time between the last redraw and now is >=50 ms.

Upvotes: 0

Related Questions