Low-Light Laser Turrets cause massive lag upon firing in groups.

Issue #230 resolved
Former user created an issue

Found a zone in the Salt Dunes, there's bunch of lowlight-tinker turrets here, when they setup a lot and they start firing, the game starts stuttering horribly.

Comments (3)

  1. Noelle Lavenza

    As far as I can tell, this is due to a Thread.Sleep in projectile animation rendering. It’s much worse with, say, psychal fleshgun turrets, because they have a higher AnimationDelay. The issue is that if multiple projectiles are fired, they will all fire in sequence, each with their own sleep for animation. The farther the player is from the turret (i.e. the more tiles the projectile has to travel, and the longer the delay for each firing) the larger the slowdown will be. Notably, since it’s a thread sleep, this isn’t actually lag or stuttering—the delay is predictable every time.

    I’m not sure of a good way to solve this, honestly. It just seems like it’s a given with the current implementation of projectile rendering.

  2. Log in to comment