Page 1 of 1

max_heartbeats_per_second

Posted: Fri Jan 07, 2022 6:54 pm
by Tonkers
running a headless server, I have this option in server-settings.json:

"_comment_max_heartbeats_per_second": "Network tick rate. Maximum rate game updates packets are sent at before bundling them together. Minimum value is 6, maximum value is 240.",
"max_heartbeats_per_second": 120,

Can someone please explain the difference in setting values between 6 & 240? I dont notice any difference in experiments. should higher value be given if you have a high volume server? is lower volume better? does it affect latency? frames? So confusing, for now, i'll just leave it at 60

Re: max_heartbeats_per_second

Posted: Fri Jan 07, 2022 8:47 pm
by DaveMcW
60 is the best value if you have a perfect network connection.

Higher numbers send multiple packets per tick, which might be useful if some packets are getting lost.

Lower numbers skip some ticks, which adds latency equal to 16.67ms times the number of ticks skipped. If you have hundreds of players on your server this might be useful to reduce network traffic.

Re: max_heartbeats_per_second

Posted: Sat Jan 08, 2022 8:34 pm
by Tonkers
very nice explanation, thank you! Being a new feature there are no google results for this, hopefully your post will add that for anyone else searching.