Updated PM, uses 60s average to match message update time, modified message to display Server Running Time(Total Time Elapsed) in h:m:s.ms format

Readded perviously removed update interval condition
This commit is contained in:
NotAlwaysTrue
2025-12-22 00:24:22 +08:00
parent 7d9642a5b1
commit d98f9de5d4
3 changed files with 18 additions and 9 deletions
@@ -692,11 +692,11 @@ namespace Barotrauma
GameMain.PerformanceCounter.AddElapsedTicks("Update:MapEntity:Misc", sw.ElapsedTicks);
sw.Restart();
#endif
//TODO: Divide ItemList into different parts to update
Task ItemTask = Task.Factory.StartNew(() =>
{
Item.UpdatePendingConditionUpdates(deltaTime);
//mapEntityUpdateTick % MapEntityUpdateInterval == 0
if (true)
if (mapEntityUpdateTick % MapEntityUpdateInterval == 0)
{
Item lastUpdatedItem = null;