33 ms·
I like in my Chrome how the box generation keeps going on while the tab is blurred/deselected, but simulation is halted... then, when focusing back on the tab,
by Eduard 15y ago
I like in my Chrome how the box generation keeps going on while the tab is blurred/deselected, but simulation is halted... then, when focusing back on the tab, a bunch of on-the-same-spot generated boxes get simulated again and explode in all directions.
- xxbondsxx 15y agoChrome limits setTimeout() to 1 call per second when the tab loses focus. I haven't gotten a chance to look at the code, but if three.js uses requestAnimationFrame and the physics uses setTimeout, things might get out of sync.