Original_SCLS 100, 100, 200, 200
Steve_SCLS 100, 100, 200, 200
PRINT USING "##.######## seconds for original"; t1##
- t##
PRINT USING "##.######## seconds for Steve"; t2##
- t1##
PRINT "Notice the size of our FOR loops -- Steve_SCLS is running 100 times more," PRINT "with very little time difference!"
kolor2~& = &H00000000
'memory out of range prevent
'---------------------------
' LINE (W(3).X1, W(3).Y1)-(W(3).X2, W(3).Y2), _RGB32(183, 194, 200), BF 'create border between software and hardware area
y = y1 * w * 4 + x1 * 4
y2 = y2 * w * 4
xstop = x2 * 4 - x1 * 4
w = w * 4
o = m.OFFSET + y
y = y + w
'_MEMFREE m 'No need to memfree as we keep the memblock available to point to other images in the future
kolor2~& = &H00000000
'memory out of range prevent
'---------------------------
'LINE (W(3).X1, W(3).Y1)-(W(3).X2, W(3).Y2), _RGB32(183, 194, 200), BF 'create border between software and hardware area
y = y1
x = x1
x = x + 1
x = x1: y = y + 1