Reference
Performance and large servers
uniqers-christmasPage 21 of 231 topicUpdated recently
The script was reworked for big servers (up to 2048 slots).
- Event loops sleep for everyone who is not taking part. The shooting checks of the siege and the airstrike only run for players inside the event.
- No server-wide broadcasts for team scores: they are batched and sent to players who look at them.
- Payday is spread over server ticks instead of paying everyone in one frame.
- Autosave skips players whose data did not change.
- Snowmen are synced by grid cells (
GridSize): players only receive snowmen around them. - Snow piles and the tree ornaments are local props spawned when you come close.
- Lobby events run in private routing buckets, so the rest of the city never streams them.
- Event areas keep ambient and scenario peds out while an event runs.
01Tips
- Keep
Config.SnowZones.MaxPilesand the number of zones reasonable on very busy servers. - Lower
SpawnDistanceof the snowman builder if your players build a lot of snowmen in one place.
Still stuck? Send us your server log on Discord and we will sort it out with you.
Ask on Discord