image or rect
Blitz3D Forums/Blitz3D Programming/image or rect
| ||
what is faster a 32x32 image of black blitted to the screen or a rect drawn. I assume an image?? |
| ||
I never tested it, but it's easy to do so:t1=millisecs() for i=0 to 10000 rect 100,100,100,100,1 next t2=millisecs() for i=0 to 10000 drawblock img,100,100 ; of course, must be a 100*100 img next t3=millisecs() print t2-t1 print t3-t2 waitkey() |