News for hackers. Stuff that matters.
Re:Texgen.js – Lightweight Procedural Texture Generator by mrdoob2 on Sunday January 25, 2015 @09:13PM (#8945233)
I instrumented the code and using conditionals resulted in 2x the generation time per loop. These loops are executed only once so the VM doesn't have a chance to optimise them.
Re:Texgen.js – Lightweight Procedural Texture Generator by gavanwoolery on Monday January 26, 2015 @12:27AM (#8945644)
I've done similar in the past and can concur that it does have large performance benefits, at least in Chrome where I tested it.