Poltergust near entities (even those it does nothing with) lags out game
Dhranios opened this issue ยท 1 comments
Describe the bug
Whenever you vacuum or expel near a lot of entities, the game slows down a lot.
To Reproduce
Steps to reproduce the behavior:
- Clear a room with a money-containing chest, without a mirror
- Open the chest with the Poltergust selected
- Notice the lag
- Deselect the Poltergust before items get grabbed
- Notice the server catching up, and then continuing normal speed
Expected behavior
The Poltergust wouldn't lag out the server.
Map version:
4ab0ae8
Additional context
Uncertain if also the case before recent changes to the Poltergust entity-interacting (which were made to make it work with marker entities/all entities in a 3 block range).
Can be improved by merging a bunch of the function tag's functions under a new tag (eg items, only running when the entity has tag=item)
Possible groupings:
- item
- ghost
- ball
Split files with more than 1 line into a 1-condition file under /effects like mouse and boolossus.
Apply same changes to dust, fire, water and ice.
EDIT: applied to vacuum only, others have way less possible interactions; this seemed to have little effect though