change stopwatch threshold to 50ms
This commit is contained in:
@@ -142,9 +142,9 @@ public class BlockEntityReusableBeehive : BlockEntityContainer, IModEntity
|
||||
stopwatch.Restart();
|
||||
|
||||
UpdateGreenhouseStatus();
|
||||
stopwatch.LogTime(this, 0.02, "after greenhouse");
|
||||
stopwatch.LogTime(this, 0.05, "after greenhouse");
|
||||
UpdateStatsText();
|
||||
stopwatch.LogTime(this, 0.02, "after stats");
|
||||
stopwatch.LogTime(this, 0.05, "after stats");
|
||||
|
||||
if (Api.Side == EnumAppSide.Client)
|
||||
return;
|
||||
@@ -613,7 +613,7 @@ public class BlockEntityReusableBeehive : BlockEntityContainer, IModEntity
|
||||
?? SelectBiasedCandidate(floorCandidates))
|
||||
?? SelectBiasedCandidate(ceilingCandidates);
|
||||
|
||||
stopwatch.StopAndLogTime(this, 0.01);
|
||||
stopwatch.StopAndLogTime(this, 0.05);
|
||||
|
||||
if (selected == null)
|
||||
return false;
|
||||
|
||||
@@ -280,7 +280,7 @@ public class PlantPositionRegistryModSystem2 : ModSystem, IPlantPositionRegistry
|
||||
}
|
||||
}
|
||||
|
||||
stopwatch.StopAndLogTime(this, 0.01);
|
||||
stopwatch.StopAndLogTime(this, 0.05);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -317,14 +317,14 @@ public class BlockEntityBehaviorBeeSwarm(BlockEntity blockEntity) : BlockEntityB
|
||||
for (var i = 0; i < totalDelta / 0.1f; i++)
|
||||
bee.Step(0.1f, 0.1f); // todo
|
||||
}
|
||||
stopwatch.StopAndLogTime(this, 0.01);
|
||||
stopwatch.StopAndLogTime(this, 0.05);
|
||||
}
|
||||
|
||||
private void OnTick(float dt)
|
||||
{
|
||||
stopwatch.Restart();
|
||||
Update(dt);
|
||||
stopwatch.StopAndLogTime(this, 0.02);
|
||||
stopwatch.StopAndLogTime(this, 0.05);
|
||||
}
|
||||
|
||||
private void Update(float dt)
|
||||
|
||||
@@ -189,7 +189,7 @@ public class BlockEntityBehaviorRoamingBees(BlockEntity blockEntity) : BlockEnti
|
||||
for (var i = 0; i < totalDelta / 0.1f; i++)
|
||||
bee.Step(0.1f, 0.1f); // todo
|
||||
}
|
||||
stopwatch.StopAndLogTime(this, 0.01);
|
||||
stopwatch.StopAndLogTime(this, 0.05);
|
||||
}
|
||||
|
||||
public void Clear()
|
||||
|
||||
Reference in New Issue
Block a user