space-wizards / space-station-14

A multiplayer game about paranoia and chaos on a space station. Remake of the cult-classic Space Station 13.
https://spacestation14.io
MIT License
2.56k stars 3.17k forks source link

Add delay to entitystorage transfers #8824

Open metalgearsloth opened 2 years ago

metalgearsloth commented 2 years ago

Sloth why do you add delays to everything

In my prototypes for container culling for PVS it cut entity count by at least a third which is significant. The reason for a delay is because you can defer spawning the entity for storagefill while still having the interaction predicted (because the client can't predict the entity being spawned). The performance benefits are too tempting to ignore.

wrexbe commented 2 years ago

So would this be a delay in opening the UI for storage, rather then a delay in actually moving it?

metalgearsloth commented 2 years ago

So would this be a delay in opening the UI for storage, rather then a delay in actually moving it?

Delay in moving, opening the UI shouldn't inherently spawn it IMO.

Project Zomboid does it and it works pretty well there though theirs is massive, I don't imagine making it higher than say 0.5.