Make disabled prediction work again.

Simulation input and Update() does not happen when prediction is disabled. Both of these can be re-opted in on a per-handler/system basis with a bool flag. Stuff like physics opts out of this now.
This commit is contained in:
Pieter-Jan Briers
2021-12-30 03:03:39 +01:00
parent 720f33a12a
commit 069ebbc8d0
23 changed files with 104 additions and 34 deletions

View File

@@ -128,7 +128,7 @@ namespace Robust.Server.GameObjects
}
/// <inheritdoc />
public override void TickUpdate(float frameTime, Histogram? histogram)
public override void TickUpdate(float frameTime, bool noPredictions, Histogram? histogram)
{
using (histogram?.WithLabels("EntityNet").NewTimer())
{
@@ -138,7 +138,7 @@ namespace Robust.Server.GameObjects
}
}
base.TickUpdate(frameTime, histogram);
base.TickUpdate(frameTime, noPredictions, histogram);
EntitiesCount.Set(Entities.Count);
}