C (80/257)

From:
Date:07 Feb 2001 at 22:17:44
Subject:Re: Cybergraphics/LockBitMapTagList()

Hello Gabriele

On 07-Feb-01, Gabriele Svelto wrote:

>> you can call lock/unlock functions every 10 frames for example, ths
>> should give you significant speedup, and you will avoid trashing other
>> screens.
>
> This could help but I would block the multitasking for way too much

but you do not keep your bitmap locked for such long time:

framecnt = 10;
frameloop:
{
if(framecnt == 10)
{
lockbitmap();
getbitmapaddres;
unlockbitmap();
framecnt = 0;
}
drawsomethng to bitmapaddress;
framecnt++;
}

We were using similiar approach in our ppc movie players, this works fine.

> I didn't thought of blitting... It could be slower but if the gfx board

there is no other way. well, you could write to window->rastport->bitmap,
but this is wb screen bitmap IIRC, and this will require lot of additional
work to make sure you drawing in correct place.

> this the only method to do double--buffering in a window? See ya

dont know about any others ;)

Sebastian

------------------------ Yahoo! Groups Sponsor ---------------------~-~>
eGroups is now Yahoo! Groups
Click here for more details
http://click.egroups.com/1/11231/0/_/451227/_/981580864/
---------------------------------------------------------------------_->