Performance is horrendous, this is the simple solution

When enemy bodies die and many bodies stack on each other, the physics of their bodies are not turning off on them so they touch each other every frame and nuke fps. It is simple to fix it:
When enemy dies, add a timer which checks every 0.25s or 0.5s, if his velocity is near zero, when it is just disable physics or at all collisions of the enemy. As simple as that.
(for example i get 25-30fps in act 7 when 20-30 enemies die until they despawn and fps is again stable, if anyone will say potato pc then my specs is 3070 and i7-11800H). Hopefully EHG will see this.

1 Like