Personally I never use a canvas for reading/writing direct to. I only use SysRam images for that. It's far quicker. Try your example with the main write loop as this. (in both versions).
I would be interested to know the results.
I would be interested to know the results.
; Process the event... If e = EVENT_MOUSEDOWN Then SetBuffer ImageBuffer (ibuffer) LockBuffer ImageBuffer(ibuffer) startTime = MilliSecs() For count = 0 To 100 For y = 0 To IMAGE_HEIGHT For x = 0 To IMAGE_WIDTH rrgb = ReadPixelFast(x,y) WritePixelFast x,y,rrgb Next Next Next UnlockBuffer ImageBuffer(ibuffer) SetBuffer CanvasBuffer(canvas) DrawBlock iBuffer,0,0 endTime = MilliSecs() Print endTime - startTime FlipCanvas (canvas) EndIf If e = EVENT_CLOSE Then End