If you comment out the WritePixelFast command you will see the time drop to about 7.
This means that nearly 90% of the time is used by the graphics card.
Your code really tests how fast the card does 2d drawing on single pixels.
Modern graphics cards are optimized to excel in other areas.
And if you thought that was slow try again with ReadPixelFast.
This means that nearly 90% of the time is used by the graphics card.
Your code really tests how fast the card does 2d drawing on single pixels.
Modern graphics cards are optimized to excel in other areas.
And if you thought that was slow try again with ReadPixelFast.