PocketMatrix forums

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

"flashing" problem

merry xmas and happy new year to all :)

I've received feedback about a game, where it seems that the screen is flashing heavily, but only in some parts of the game.

I've deduced that the problem comes from "don't rely on the previous screen contents", it seems that the flash comes from all the screens where I don't update properly the background each frame (my fault, as it's widely known not to rely on previous screen contents)

However this is the first device (iPAQ 5455) that I'm aware of this problem. Is there any way to know if the device will present this kind of problems in advance (I mean, a call in the Display class, or something like this) I'd prefer to do a check and backup and restore screen contents from frame to frame in devices where the problem would happen, and leave it as it is now for other devices, in order to get a higher framerate.

TIA
Kak
Where have you seen the "don't rely on previous contents"? The only thing I'm aware of is the Lock() function in PF that has a flag to discard contents on unlock.

Are you using pocketfrog or phal (or both?)
fast_rx wrote:Where have you seen the "don't rely on previous contents"? The only thing I'm aware of is the Lock() function in PF that has a flag to discard contents on unlock.

Are you using pocketfrog or phal (or both?)


well, I couldn't say this for sure, but I recall reading some posts here at pocketmatrix talking of it, like the framebuffer wasn't supposed to be the same from call after call.

I'm using pocketHAL alone.
I saw the same sort of thing when I tried Space Treker on my old iPaq h3650. The screen was fine on my Axim but on the iPaq stuff I did not re-draw was missing. You have to redraw the whole screen every frame I guess to ensure that it's always there.
What flags are you using on the swap?

SwapEffect {
SWAP_NONE,
SWAP_DISCARD,
SWAP_COPY
}

Speaking of this, there's not really an easy way to find the doxygen files for phal...