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.

Snarty,

Thanks for your feedback.

I've tried your version and the results are

version 1.11 - 510 millisecs
version 1.35 - 720 millisecs

Of course this version changes the test so that the canvas is not updated along the way. The reason I was writting the pixels directly to the canvas was that the information I may normally have to display is not very dense, and in earlier tests on 1.11 it was quicker to just update the pixels rather than the full dirty rect.

I also had previously tried the LockedPixel() method and I couldn't get this to perform as well as the readpixelfast(), of course my approach may not have been the best.


Mark,
Thanks for this suggestion, not doing the SetBuffer()'s in the loop shaved 4000 millisecs (or 25 percent).

Are canvases created using video ram?

Thanks
Ken