Alcatergit/Hbm-s-Nuclear-Tech-GIT

Bullet Persistence after unload

Opened this issue · 0 comments

Entity entity_bullet seems to be persistent through server restarts/chunkloads. This causes major lagspikes and client freezing/crashing for clients on render when too many bullets have exited render distance, and are loaded in at the same time.

FBI raids (and presumably turrets etc as well) can cause this without player interaction by shooting/missing evil mobs and stacking bullets outside of loaded chunks.

Bad practice not using raycasts for bullets aside, this seems like unintended behaviour. Not sure how I'd go about fixing this without breaking snipers etc. Maybe a bullet entity cap?