Dissolving the amount of gravity the closer something is to the ground would reduce lag. I have done this with many languages such as Processing and WebGL, trust me, it would help.
I've not worked on this code for about four years now - if you want to add improvements, I will be more than happy to merge those in, as long as you update the relevant documentation too of course.
Dissolving the amount of gravity the closer something is to the ground would reduce lag. I have done this with many languages such as Processing and WebGL, trust me, it would help.