Page 1 of 1

Flickering on new PocketHAL and new devices?

PostPosted: Jul 18, 2008 @ 4:52pm
by jaguard
There was an issue with flip operation when I didn't update the whole screen, but only the small rect.
I.e. when I called say display->Update(Rect(100,100,150,150)) to only update loading progress, display would flicker on some devices. This is absolutely true for PocketHAL 0.8.x (AFAIR) and ipaq h2110.

Now I would like to have this kind of optimization in a whole game, including gameplay - for battery saving purposes and also because framerate is not sufficient.
Will it work? Will it not flicker on all devices, especially new ones?

PS: Actually, I'm not using pure PocketHAL - it's PocketFrog, but I believe this flickering is PocketHAL's issue, not PocketFrog's.

PostPosted: Jul 19, 2008 @ 12:00am
by Kzinti
Jaguard, the rectangle you specify to Update() can be used to optimize the update, but it isn't used to clip the update. Said another way, PocketHAL might update only the specified rectangle, a bigger area or even the whole screen.

The behaviour is this way for performance reasons and also because some devices / APIs simply don't allow the updating of sub-sections of the screen.

Let me know if this explains your problem or not. If you have genuine flickering, then it might be a problem with the (newer) device. You are encouraged to use update rectangles to save on battery power and for better performances.

PostPosted: Jul 19, 2008 @ 2:48pm
by jaguard

PostPosted: Jul 19, 2008 @ 7:44pm
by Kzinti

PostPosted: Jul 19, 2008 @ 8:23pm
by Kzinti

PostPosted: Jul 19, 2008 @ 9:35pm
by jaguard

PostPosted: Jul 19, 2008 @ 10:44pm
by Kzinti

PostPosted: Jul 19, 2008 @ 11:18pm
by jaguard