Well, I never claimed it was better, just showing a different method.Originally Posted by dmantione
But I do think it's better to "waste" a whole 52 bytes of memory rather than doing a multiply operation for every power.
But, it's still a fun exercise to think up ridiculously optimised functions, so keep em coming.
Cheater!Originally Posted by cairnswm
Now that's more of a waste of memory (a whole 4.14kb *shock* *horror*).. But should run very nicely!
I should also point out that most games these days are using up to 2048x2048 textures so you actually need a massive 8.4kb of memory...
Bookmarks