writepixelfast

BlitzPlus Forums/BlitzPlus Programming/writepixelfast

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.

Graphics 800,600,32


Plot 0,0
b=ReadPixel (0,0)
LockBuffer FrontBuffer()

time=MilliSecs()
For x = 0 To 799
For y =0 To 599
WritePixelFast x,y,b
Next
Next

time= MilliSecs()-time
UnlockBuffer FrontBuffer()
Color 9,9,9
Text 0,0,time

WaitKey



why does the above code give a time of 55 milliseconds on a friend's 450mhz PC while my 3ghz PC returns a time of 63 milliseconds?