Create a function that handles the redraw interval using window.requestAnimationFrame() and window.setTimeout() instead of window.setInterval() as it should cut down on rendering cycles.
Look at using HTML canvas as it will use much less memory since only 1 HTML element is created.
These are the ways that I would expand on this code to improve, not only performance, but my skill set.
I have some suggestions on how to improve this.
window.requestAnimationFrame()
andwindow.setTimeout()
instead ofwindow.setInterval()
as it should cut down on rendering cycles.These are the ways that I would expand on this code to improve, not only performance, but my skill set.
I doubt that.