Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Acid - final release

Name: FrozenVoid 2011-10-28 11:50

Optimized quasicrystal code: full window size render ~17 seconds for 30 frames
http://pastebin.com/fjLQnbkB

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-05 10:37

>>225
Math.abs is C fabs(double) which compiles to FABS which is 1 cycle in all modern processors
xsum*(1-((xsum<0)<<1)) is at least 5 cycles and JS will insist on converting doubles to Int32 to use bitwise math(shifts).
There is no point optimizing it when Firefox uses asm code inlined for your methods.
x* ((((x >= 0)) << 1) - 1) is equivalent to xsum*(1-((xsum<0)<<1)) as    1 - 2:0 and 2:0 -1

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List