Code: Select all
EscapeQuit(True)
@DISPLAY {Width = 1920, Height = 1080}
@REQUIRE "rebelsdl"
CreateBrush(1, 5, 5, #WHITE, {hardware=True})
BeginDoubleBuffer(True) ; set up a hardware double buffer
StartTimer(1)
SetFillStyle(#FILLCOLOR)
For move=1 To 300
For a = 1 To 100
For b = 1 To 100
DisplayBrush(1, 10 + (a*8) + move, 10+(8*b))
Next
Next
Flip
Cls
Next
DebugPrint(GetTimer(1))
NO RebelSDL filled boxes: 10300
RebelSDL filled boxes: 9886
NO RebelSDL brushes: 9300
RebelSDL brushes(code above): 8900
First of all, surprisingly displaying brushes was faster than drawing, and another surprise was that RebelSDL gave only very little advantage over Hollywood in my machine. My machine was Win10 Intel Nuc 3, which is starting to be bit old already, and was a low powered machine even when i bought it maybe 5 years ago.