PocketMatrix forums

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

Flickering on ipaq 2210

It's strange - every owner of this PDA tells that the game awfully flickers every time on loading screen.
My guess is that I'm doing getdisplay + update without completely redrawing the screen(I only update loading progress indicator, by perfomance reasons), and this is somehow forbidden.
Why is it so, and am I right that I must redraw everything every frame?
If you don't redraw everything some devices will work & some won't. My X5 was ok but my iPaq 3650 wasn't so I always draw everything now.
So it can't be helped? Ok, looks like I'll have to rewrite my loading update function, again..


[offtopic]Btw, Conan, did you get my email a while ago? I asked you if you wanted to be in credits :). Did you get the full version? It's just that I didn't get any reply..
It's just that[/offtopic]
You have to completly redraw the screen unless you force PocketHAL into SWAP_COPY mode. The 2215 will operate in SWAP_FLIP mode by default.
Thierry, is pocketFrog using the _SWAP?

I looked at the code and didn't see either SWAP or COPY, so I assume it must defualt to SWAP.
You can specify two swap modes: SWAP_DISCARD and SWAP_COPY. SWAP_NONE isn't a valid choice.

Code:

/// The SwapEffect is used to specify how the display is updated from the
/// backbuffer.
enum SwapEffect
{
SWAP_NONE, ///< Direct access (no buffering).
SWAP_DISCARD, ///< We don't care about the content of the backbuffer.
SWAP_COPY ///< We want to keep the backbuffer content.
};


By default, SWAP_DISCARD is being used:

Code:

/// Construction
DisplayParameters( Orientation orientation = ORIENTATION_NORMAL,
SwapEffect swapEffect = SWAP_DISCARD )



If you don't want to have to update the whole screen, use SWAP_COPY. The 2215 operates in SWAP_DISCARD mode (that's what I meant, and not SWAP_FLIP).

Since PocketFrog uses the default SWAP_DISCARD mode, you need to update the whole screen. Or you can change the initialization of PocketHAL to use SWAP_COPY.
Does it show garbage or some constant color for sections that were not drawn?

Just curious...
Undefined behavior is the answer =)