Whats faster (DrawBlock/DrawBlockRect)

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

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

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