PocketMatrix forums

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

Tearing when scrolling...Still a problem?

I have a game in Palm using GapiDraw 3.01b, running on a Zodiac 1 (glad to see you implemented the Zodiac keys and orientation in b!) and inside ProcessNextFrame I have two BltFast's which scroll then place a bitmap, plus 2-3 FillRect's. I'm getting tearing every few frames. I'm not calling Flip() manually, and relying of ProcessNextFrame to return and flip the backbuffer. Is there any new news on the tearing problem? I read it was an issue for the PocketPC awhile ago. It seems like its in the Palm now. Any help / performance tips for this tearing issue would be great! Acknowledging if its a current issue would also be great, in a weird way. :)

Also. Whats the best way to handle sprites in a way that theyre independant of the bitmapped backbuffer? Will I need to redraw the entire buffer each time I move a sprite against a background to prevent smearing?

Thanks,
Fraggler
fraggler wrote:
Also. Whats the best way to handle sprites in a way that theyre independant of the bitmapped backbuffer? Will I need to redraw the entire buffer each time I move a sprite against a background to prevent smearing?


The only option you have other than redrawing the entire backbuffer is to implement a dirty rectangle method. This involves storing the background under the sprite prior to drawing it, then when the sprite is moved, replacing the old background, storing the background under the new position, then drawing the sprite. Its a pretty simple process.
Regarding tearing on the Zodiac. We are working on implementing support for TwGfx which will introduce VBlank sync and other nice features.. :)