PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Low fps n97

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?
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).
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?
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).