? Faster ACLS ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password
What's going on?? See: Site Update March 2022

Faster ACLS

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: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)
Author
12Me21
Updated
Rating
8 votes
Categories
Keywords
10 Comment(s) rando rando Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Third Year My account is over 3 years old Website Avatar Taboo I didn't change my avatar for 180 days Website That's nice chicken chicken Deep Sleep Hidden Website that's nice, dear. SmileForTheKiddies SmileForTheKiddies very nice. HTV04 HTV04 Forum Leader Hidden Achievements Third Year My account is over 3 years old Website Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength too nice rando rando Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Third Year My account is over 3 years old Website Avatar Taboo I didn't change my avatar for 180 days Website Not nice enough Oh also that chart is nice because it has a 70 and that's one away Simeon Simeon Scholar Received for knowing a great deal about programming topics Achievements Amazing Page Hidden Achievements Drawing I like to draw! Hobbies What the heck This can't be true Simeon Simeon Scholar Received for knowing a great deal about programming topics Achievements Amazing Page Hidden Achievements Drawing I like to draw! Hobbies It might even be faster to unroll that loop Yolkai Yolkai Head Admin 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. 12Me21 12Me21 Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself 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. MZ952 MZ952 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Third Year My account is over 3 years old Website Reading I like to read books! Hobbies Oh. This I did not know.