landgreen / n-gon

2-d physics rogue-lite platformer shooter
https://landgreen.github.io/n-gon/
GNU General Public License v3.0
154 stars 226 forks source link

Extreme lag in later levels #4

Closed Transistorsis closed 4 years ago

Transistorsis commented 4 years ago

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

landgreen commented 4 years ago

added 2x difficulty scaling after completing each map. This should make it impossible to get past level 20 without cheating.