FOR I=0 TO 3 GPAGE 0,I GCLS NEXT ACLS TRUE,FALSE,FALSEThis is the same as normal ACLS, but doesn't load the default sprite/BG sheets. (Which is fine if you load your own right after or aren't using sprites/BG)
Faster ACLS
Root / Submissions / [.]
12Me21Created:
In 3.3, ACLS accepts 3 arguments, which disable some things when not 0
ACLS skipGraphics, skipSpdef, skipFont
skipGraphics will skip clearing the graphics pages and loading the default sprite/BG sheets (the slowest part).
skipDef will skip resetting the sprite definitions (minimal speed impact).
skipFont will skip loading the default font (minimal speed impact).
If you are not using the default sprites/BG, you can do:
It might even be faster to unroll that loop
a loop construct is negligible compared to a graphics page wipe, almost certainly.
this is assuming that the SmileBASIC pre-compiler doesn't expand constant loops anyway.
It definitely doesn't; I remember when I used repeated commands instead of a FOR loop when decompressing audio data, and it was a little bit faster.
But that was because it was already inside like 3 nested loops, where this only runs once so there probably won't be any noticeable change.
Not nice enough
Oh also that chart is nice because it has a 70 and that's one away