From 7010155916b60e8a9c88cbbd7e233dd858320e12 Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Sat, 16 Sep 2023 18:08:27 +0100 Subject: [PATCH] [*] Improved schedular regressed intraprocess command dispatch of main thread cmds --- Source/Async/Schedular.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Async/Schedular.cpp b/Source/Async/Schedular.cpp index 207bdf29..ad3f5899 100644 --- a/Source/Async/Schedular.cpp +++ b/Source/Async/Schedular.cpp @@ -145,7 +145,9 @@ namespace Aurora::Async else { uNextSysTickGuessed = 0; - gSchedCondvar->WaitForSignalNS(); + gSchedCondvar->WaitForSignalNS(gRuntimeConfig.async.bEnableLegacyTicks ? + AuMSToNS(gRuntimeConfig.async.dwLegacyMainThreadSystemTickMS) : + 0); } GetDispatchableTasks(pending);