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
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