Open CrosRoad95 opened 6 years ago
Unoccupied vehicle sync is only sent to clients in the vehicle's dimension[1]. Perhaps player sync could be done in a similar way (with exceptions like element data sync). These might require a resync packet like vehicles[2], when changing dimensions, to sync up any changes that weren't synced to the clients of the new dimension.
I believe this would be sufficient to disable sync between players of different lobbies/gamemodes on the same server.
manually changing sync method would be good because on my server there is a high draw distance and players in large vehicles (ships, bombers) should be synced "normal" with everyone around up to 1500m distance.
A worst case scenario with a lot of players spread out in the same dimension would also have unnecessary syncing, but not only with players. Peds and unoccupied vehicles are synced even across the map, so perhaps just the dimension as a seperation isn't enough and distance would be a neat optional feature.
This would extend your 3 functions to also include peds and unoccupied vehicles besides players
Is your feature request related to a problem? Please describe. For big server ( with 100+ players ) default synchronization players cause unnecessary lags
Describe the solution you'd like Introduce function for controlling this things. functions for:
Describe alternatives you've considered /
Additional context Example usage, problems with current