[reply]
cb, what FPS do you get on your machine? Your first example runs at 10FPS on mine, the second one at 4FPS??
(P4 2.6GHz, Radeon 9700)
[/reply]
What?? If anything the second should be faster...
Using VSYNC, I get 47 fps on the first and 95 on the second. WHen I turn VSYNC off, I get over 200 on the second one.
When I do a:
I get almost 1000 fps!
Clearly, plotting the screen pixel by pixel is much slower. Normally, you would never do this anyway. Much faster to copy rows of pixels or lines.
cb
cb, what FPS do you get on your machine? Your first example runs at 10FPS on mine, the second one at 4FPS??
(P4 2.6GHz, Radeon 9700)
[/reply]
What?? If anything the second should be faster...
Using VSYNC, I get 47 fps on the first and 95 on the second. WHen I turn VSYNC off, I get over 200 on the second one.
When I do a:
repeat cls flip false until keydown(1)
I get almost 1000 fps!
Clearly, plotting the screen pixel by pixel is much slower. Normally, you would never do this anyway. Much faster to copy rows of pixels or lines.
cb