Reduce the default TPS (#5326)

It is our suggestion for a long while to keep the TPS at 30 for servers. However the default was always 60.

I believe its better to have it as a default.
This commit is contained in:
Vasilis
2024-08-01 16:27:46 +02:00
committed by GitHub
parent 807e7e888a
commit 7ebfc82dd6
3 changed files with 3 additions and 2 deletions

View File

@@ -48,6 +48,7 @@ END TEMPLATE-->
### Other
* Added obsoletion warning for `Control.Dispose()`. New code should not rely on it.
* Reduced the default tickrate to 30 ticks.
### Internal

View File

@@ -9,7 +9,7 @@ level = 1
enabled = false
[net]
tickrate = 60
tickrate = 30
port = 1212
bindto = "::,0.0.0.0"
max_connections = 256

View File

@@ -289,7 +289,7 @@ namespace Robust.Shared
/// This influences both how frequently game code processes, and how frequently updates are sent to clients.
/// </summary>
public static readonly CVarDef<int> NetTickrate =
CVarDef.Create("net.tickrate", 60, CVar.ARCHIVE | CVar.REPLICATED | CVar.SERVER);
CVarDef.Create("net.tickrate", 30, CVar.ARCHIVE | CVar.REPLICATED | CVar.SERVER);
/// <summary>
/// Offset CurTime at server start by this amount (in seconds).