nanogui: Arrangement of memory in a PixMap
Subject:
Re: [nanogui] Arrangement of memory in a PixMap
From:
Pierre Tardy ####@####.####
Date:
24 Apr 2002 18:51:54 -0000
Message-Id: <20020424163958.7a48100b.tardyp@free.fr>
On Wed, 24 Apr 2002 09:02:46 +0100
Simon Wood ####@####.#### wrote:
> I'm in the process of porting a (GPL'ed) GameBoy emulator to nano-x, but
> their system uses a framebuffer concept to write directly into buffer.
I've already done a port of gnuboy for a strong-arm pda.
see <hpjx25.free.fr>
for details and sources.
>
> I thought the best way would be to generate a PixMap with
> image = GrNewPixmap(x_width, x_height, image_addr);
wrong idea.. to slow..
The best way in my opinion is to ask nano-X for the framebuffer.
>
> and then passing the image_addr to their fb routines. At the end of each
> 'screen creation' I would then do a copy
> GrCopyArea(x_win, gc1, 0, 0, x_width, x_height, image, 0, 0, 0);
Think of the process. the gb is running 60Hz
So you have to call 60 time per sec GrCopyArea..
Pierre