Re: [iPAQ] double buffering

From: Paulo Marques <pmarques.a.t.restinfor.pt>
Date: Thu Oct 31 2002 - 05:13:52 EST

David Bannach wrote:
> Does the iPAQ framebuffer device support double buffering? And how
> could this be managed?
>
> I heard about ioctl() but never used it. Currently I work with
> open("/dev/fb0") and mmap() and get flickering animations.
>

Why are they flickering?

This can only happen if you draw on the frame buffer "temporary" states
(like drawing the background and then some sprites on top).

You should use different techniques (like dirty blocks, etc.) to draw in
memory and then only transfer to the framebuffer the relevant result.

This way there is no flicker at all.

Hope this helps,

-- 
Paulo Marques
Software Development Department - Restinfor, Lda.
Phone: +351 252 290600, Fax: +351 252 290601
Web: www.grupopie.com
"In a world without walls and fences who needs windows and gates?"
Received on Thu Oct 31 10:16:24 2002

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:44:58 EDT