Whats faster (DrawBlock/DrawBlockRect)

BlitzPlus Forums/BlitzPlus Programming/Whats faster (DrawBlock/DrawBlockRect)

Try it and see.

A good way to time things is to use millisecs(). It helps to do [whatever] say 1000 or more times to compensate for the effect of the timing loop and the granularity of the timer.

start_time#=millisecs()

for f=1 to 10000

Drawblock .....


next

end_time#=millisecs()

actual_time_taken#=end_time-start_time

time_for_one#=actual_time_taken/10000