solar-system-of-js icon indicating copy to clipboard operation
solar-system-of-js copied to clipboard

Prevent overflow of the animation channel

Open shaunlebron opened this issue 9 years ago • 1 comments

from: http://www.reddit.com/r/javascript/comments/32t9q6/the_solar_system_of_js/cqf7h5o

Keeps breaking for me (on latest OS X with latest Chrome) after a few slides with: Uncaught Error: Assert failed: No more than 1024 pending puts are allowed on a single channel. >Consider using a windowed buffer. (< (.-length puts) impl/MAX-QUEUE-SIZE)

I'm pretty sure this is the tick-tap channel. Something must be blocking it. I thought it the draw function was the only thing that would slow it down, whereas the animations are just state calculations that can presumably happen in less than 12ms.

Maybe the persistent state structure is growing too much. Will investigate

shaunlebron avatar Apr 17 '15 16:04 shaunlebron

Let me know if I can help!

relaxnow avatar Apr 17 '15 20:04 relaxnow