CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.68k stars 4.19k forks source link

Gas/smoke-aura enemies create lag #71717

Closed worm-girl closed 7 months ago

worm-girl commented 9 months ago

Describe the bug

While testing some stuff, I noticed the game slowed down to an almost unplayable state. I discovered that there was a tear in reality nearby that had spawned several monsters.

After further testing, I discovered that the amoebic mold, flaming eye, and the other stuff that came out weren't causing me any issues. Nearly all of the lag was due to a single Nuckalavee, almost certainly because of their poison gas aura. I was also cold, which was causing some slowdown, but the monster made the lag much worse.

Attach save file

N/A

Steps to reproduce

Go stand in a field. Wait 30 minutes. Spawn a nuckleavee. Wait another 30 minutes. Note how much slower it gets. Now spawn 2.

Expected behavior

Nuckalavees spawn fairly frequently from tears in reality, which are often located in already-busy locations such as labs and especially TCL. You can't really do anything about this except leave, which makes those areas a lot harder to play in. If you're exploring TCL and a couple spawn down in the boss room while you're trying to loot the place, it gets pretty rough.

Their gas aura is similar to the hounds of tindalos and ashen brawler, which also cause lag, however the nuckalavee gives off much more gas, so the effect is more pronounced. Maybe there's a way to shrink or remove their gas aura, or make it not refresh as often? It'd be neat if they left a wispy trail of gas most of the time and then made more when they saw an enemy.

The alternative would be to do something to optimize fields, but I don't know a ton about that.

Screenshots

No response

Versions and configuration

Additional context

No response

github-actions[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.