space-wizards / RobustToolbox

Robust multiplayer game engine, used by Space Station 14
https://spacestation14.io
Other
537 stars 395 forks source link

Position interpolation should be disabled for our-of-view entities. #4047

Open ElectroJr opened 1 year ago

ElectroJr commented 1 year ago

I.e., if an entity is far away from a player's view, then it doesn't need to lerp (which causes recursive move events & lookup tree updates). Not really significant for most games, but becomes a significant source of slowdown for replays or servers where PVS is disabled.

metalgearsloth commented 1 year ago

EyeManager should really have an easy way to get all viewports (i.e. the main one + everything under viewsubscriptions).