Page 1 of 1

Low fps n97

PostPosted: Dec 10, 2009 @ 4:20pm
by mimispa
Hi Edge,
I'm testing Helloworld application on n97 and the fps are very low. 15-20 fps. The only command is display->buffer.Clear() on the OnNextFrame event.
When i'm testing in n95 fps are 60.
The problem is with 2d animations. With low fps the 2d animations are not good.
How can i increase fps on n97?
Is that problem with all devices s60 v5?

PostPosted: Dec 11, 2009 @ 7:59pm
by edge
Hi,

The N97 is slow because of a native RGBA backbuffer which needs to be emulated by EDGELIB. The device also needs more processing power to update its pixels (230400 pixels on the N97 versus 76800 pixels on the N95).

PostPosted: Dec 14, 2009 @ 10:34am
by mimispa
Is there any way to increase fps? For example if in every frame i draw to an e2dsurface and not directly to backbuffer and finaly blt the e2dsurface to backbufffer?

PostPosted: Dec 15, 2009 @ 11:32am
by edge
Hi,

The best way to preserve FPS is to only update parts of the backbuffer that are actually changing (if possible, for scrolling applications this may not work). Use ClassEDisplay::SetFlipRect to select a rectangle to be flipped to the display instead of the entire backbuffer (which is on by default).