I have started to test the version of qb64 compiled with the option -Ofast and the original version. resultas :
simple code using pset.
2.3x seconds : program compiled with qb64 -Ofast
3.5x seconds : program compiled with original qb64
Interesting results. Quite an important gain.
the _ScreenMove _Middle command is supposed to center the window but if I don't put _Delay 0.2 before, sometimes it doesn't work. strange.
simple code using pset.
2.3x seconds : program compiled with qb64 -Ofast
3.5x seconds : program compiled with original qb64
Interesting results. Quite an important gain.
Code: (Select All)
x% = 1280: y% = 768
Screen _NewImage(x%, y%, 32)
_Delay 0.2
_ScreenMove _Middle
start = Timer(.001)
For b% = 1 To 100
For i% = 1 To x%
For n% = 1 To y%
PSet (i%, n%), _RGB(Rnd * 255, 0, 0)
Next n%
Next i%
Next b%
Print Timer(.001) - start; "seconds"
the _ScreenMove _Middle command is supposed to center the window but if I don't put _Delay 0.2 before, sometimes it doesn't work. strange.