Filled Triangles

BlitzPlus Forums/BlitzPlus Programming/Filled Triangles

To run my test code in BlitzPlus you need to add a Flip command before the WaitKey.

Sswift, if you remove your buffer locking and lock the buffer for the whole test like so, you're code doesn't look so fast:

LockBuffer()


T1 = MilliSecs()
For Loop = 0 To 1000
	Triangle(-10,-10, 180,20, 230,220)
Next
T2 = MilliSecs()


T3 = MilliSecs()
For Loop = 0 To 1000
	FastTriangle(-10,-10, 180,20, 230,220)
Next
T4 = MilliSecs()

UnlockBuffer()