Raw pixel performance version 1.11 to 1.35 slowdown?

BlitzPlus Forums/BlitzPlus Programming/Raw pixel performance version 1.11 to 1.35 slowdown?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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.

; 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