11 ms·
A rounding error that causes a fast-paced Javascript game to crawl to a laggy stutter when repeated all over the place. Regardless, the Closure Compiler (that
by shazow 16y ago
A rounding error that causes a fast-paced Javascript game to crawl to a laggy stutter when repeated all over the place.
Regardless, the Closure Compiler (that the Closure Library is made to be used for) fixes this common case.
Another example where it's more than a rounding error: http://stackoverflow.com/questions/2573212/why-is-setting-html5s-canvaspixelarray-values-ridiculously-slow-and-how-can-i-do http://stackoverflow.com/questions/2573212/why-is-setting-ht...
- btipling 16y agoThat stackoverflow article points to http://www.onaluf.org/en/entry/13 http://www.onaluf.org/en/entry/13 which explains the issue is a lot more complicated then just a property lookup.