0 Members and 2 Guests are viewing this topic.
Repeat getKey(15)...code...End
While 1...code...EndIf getKey(15)
{20*12+L6+2}^^r e4
{Y*12+L6+(X/8)}e(X^8)
If you are pixel testing a constant pixel, like pxl-Test(20,20), you can more than halve the speed of this command with the following optimization: Code: [Select]{20*12+L6+2}e4
{20*12+L6+2}e4
{20*12+L₆+2}ʳe4
Is using Rect( to draw straight horizontal/vertical lines faster than Line( ?
Lbl HL →r₆ ReturnIf and b11000000 ᴇFFFF→{r₆*12+L₆}ʳ Fill(,10)Return
saving of OVER 9000 CYCLES!
Here's something really cool I found out yesterday:DispGraphr is faster than DispGraph. By more than 10000 cycles, too. It varies from calc to calc, but on mine its a full 15000 cycles faster O.o This means that if you're making a monochrome game, and you're not using the backbuffer....(at the cost of around 15 bytes or so) you can make a Quote from: NinjaKnight on February 14, 2011, 10:28:17 pmsaving of OVER 9000 CYCLES!
A quick and small way to determine the sign of a value (better than >>0) is Code: [Select]EXP//32768. It will return -1 if the value is negative, and 0 if the value is 0 or positive
EXP//32768
In other news, Frey continues kicking unprecedented levels of ass.