From 7e41fce2c35b3c3ed42b9db42b698cfb850f5ffe Mon Sep 17 00:00:00 2001 From: notgiven688 Date: Sat, 14 Sep 2024 12:07:51 +0200 Subject: [PATCH] Revert "Revert "Add SignalReset-condition"" This reverts commit dd7d5ae0dcb81c914e8d3113d28df299de4f30bf. --- src/Jitter2/World.Step.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Jitter2/World.Step.cs b/src/Jitter2/World.Step.cs index 9d96facb..7ca524fe 100644 --- a/src/Jitter2/World.Step.cs +++ b/src/Jitter2/World.Step.cs @@ -202,7 +202,8 @@ void SetTime(Timings type) PostStep?.Invoke(dt); // Signal the thread pool that threads can go into a wait state. - if (ThreadModel == ThreadModelType.Regular && ThreadPool.InstanceInitialized) + if ((ThreadModel == ThreadModelType.Regular || !multiThread) + && ThreadPool.InstanceInitialized) { ThreadPool.Instance.SignalReset(); }