View Single Post
Old 04 February 2020, 13:42   #14
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 680
Quote:
Originally Posted by balrogsoft View Post
I finally found the problem, the blitter functions of graphics.library are sooo slow.

Maybe you forgot to clear the layer and allocate a matching tmpRas?
Without a ras->TmpRas a temporary is allocated per call...

And for the layer an Obtain/Release-Semaphore is called...

do outside

struct Layer * l = rp->Layer;
ObtainSemaphore(&l->Lock);
rp->Layer = NULL;

// loop

rp->Layer = l;
ReleaseSemaphore(&l->Lock);
bebbo is offline  
 
Page generated in 0.07297 seconds with 11 queries