In later levels (e.g. level 30) there is lag such that the frame rate drops to less than one frame per second. Based on the profile that I took in Chrome, it looks like all the lag is taking place in the Matter.js engine. So, there may not be that much that can be done without rewriting it.
In later levels (e.g. level 30) there is lag such that the frame rate drops to less than one frame per second. Based on the profile that I took in Chrome, it looks like all the lag is taking place in the Matter.js engine. So, there may not be that much that can be done without rewriting it.
Here is the profile that I got: Chrome N-gon profile.zip