From 40f7b148acd651f8075d12ee3b09632304b3638e Mon Sep 17 00:00:00 2001 From: OrekiWoof Date: Mon, 30 Mar 2026 00:30:24 +0200 Subject: [PATCH] change stopwatch threshold to 50ms --- .../BlockEntities/BlockEntityReusableBeehive.cs | 6 +++--- OrekiWoofsBees.Common/PlantPositionRegistryModSystem2.cs | 2 +- .../RoamingBees/Behaviors/BlockEntityBehaviorBeeSwarm.cs | 4 ++-- .../RoamingBees/Behaviors/BlockEntityBehaviorRoamingBees.cs | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/OrekiWoofsBeehives/BlockEntities/BlockEntityReusableBeehive.cs b/OrekiWoofsBeehives/BlockEntities/BlockEntityReusableBeehive.cs index f959976..c43d032 100644 --- a/OrekiWoofsBeehives/BlockEntities/BlockEntityReusableBeehive.cs +++ b/OrekiWoofsBeehives/BlockEntities/BlockEntityReusableBeehive.cs @@ -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; diff --git a/OrekiWoofsBees.Common/PlantPositionRegistryModSystem2.cs b/OrekiWoofsBees.Common/PlantPositionRegistryModSystem2.cs index 408c29a..76311b9 100644 --- a/OrekiWoofsBees.Common/PlantPositionRegistryModSystem2.cs +++ b/OrekiWoofsBees.Common/PlantPositionRegistryModSystem2.cs @@ -280,7 +280,7 @@ public class PlantPositionRegistryModSystem2 : ModSystem, IPlantPositionRegistry } } - stopwatch.StopAndLogTime(this, 0.01); + stopwatch.StopAndLogTime(this, 0.05); } /// diff --git a/RoamingBees/RoamingBees/Behaviors/BlockEntityBehaviorBeeSwarm.cs b/RoamingBees/RoamingBees/Behaviors/BlockEntityBehaviorBeeSwarm.cs index 51e09f1..0299138 100644 --- a/RoamingBees/RoamingBees/Behaviors/BlockEntityBehaviorBeeSwarm.cs +++ b/RoamingBees/RoamingBees/Behaviors/BlockEntityBehaviorBeeSwarm.cs @@ -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) diff --git a/RoamingBees/RoamingBees/Behaviors/BlockEntityBehaviorRoamingBees.cs b/RoamingBees/RoamingBees/Behaviors/BlockEntityBehaviorRoamingBees.cs index f428bec..6cfebde 100644 --- a/RoamingBees/RoamingBees/Behaviors/BlockEntityBehaviorRoamingBees.cs +++ b/RoamingBees/RoamingBees/Behaviors/BlockEntityBehaviorRoamingBees.cs @@ -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()