I have been using INC a lot, since it looks like it should be faster, but I did a test and found:
INC X,VX: ~35 frames per 10000
X=X+VX: ~28 frames per 10000
DEC is probably the same.
I will probably still use INC/DEC, though, since the difference is small, and they look so much nicer.
At the very least, I imagine it might be faster for calculated array elements. I haven't tested it, though.
I'm curious: how do you test the speed of a command?
The code I used was something like:
C=MAINCNT
FOR N=1 to 10000
X=X+N
NEXT
PRINT MAINCNT-C
MAINCNT (I think that's what it's called) is a system variable that stores the number of frames since you started smileBASIC.
sorry for bumping an old thread, but "Search"ing for "slower" gives me the best as match.
not only that but you if you make sure the for index "N" is an integer it'll go faster. same with X if X can skip by being an INT.
ran a "long name versus short name" and "suffixedint% versus unsuffixed" the only time I got frame loss was when it was no suffix, and no defint (floats)