Cuberite Forum

Full Version: Network refresh rate (tick rate)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I am wondering if it would be possible to adjust the refresh rate to something higher than 20 ticks per seconds to have something like 60 or 120 tick servers just like you could do in Countzer Strike or some other Games.

Would be really nice to get an answer to that question Smile

Have a nice day Smile
Hello, welcome to the forum.

It's not possible by editing the server configuration, but it should be possible to quite easily change the server's source code for this. Basically the only place that forces the tick duration is the world tick thread execution: https://github.com/cuberite/cuberite/blo...d.cpp#L123 ; look for the definition of cTickTime. I'd expect some minor breakages such as the daylight duration etc., but other than that it should be doable. If you manage to modify the source so that the tick time is configurable, I'd consider merging such a pull request to the main codebase.
Thank you for your quick replay, I will post something here if I got it running Smile
If it was that easy everyone would go to 60+ ticks/s immediately.

Also depending on world size more ticks also means a LOT more server resources needed to keep running smoothly.