From fd2da6022e802cab7e19c6a1574e08953aaf2258 Mon Sep 17 00:00:00 2001 From: Brian L <130494071+csciguy8@users.noreply.github.com> Date: Tue, 29 Aug 2023 14:46:39 -0600 Subject: [PATCH] Add code to let UI tick when running tests --- Source/CesiumRuntime/Private/Tests/CesiumLoadTest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/CesiumRuntime/Private/Tests/CesiumLoadTest.cpp b/Source/CesiumRuntime/Private/Tests/CesiumLoadTest.cpp index cc4da39fe..fb8ce9a56 100644 --- a/Source/CesiumRuntime/Private/Tests/CesiumLoadTest.cpp +++ b/Source/CesiumRuntime/Private/Tests/CesiumLoadTest.cpp @@ -114,6 +114,12 @@ bool tickWorldUntil( ENamedThreads::GameThread); FTSTicker::GetCoreTicker().Tick(frameElapsedTime); + // Let UI update + // Not absolutely necessary, but convenient when running the tests + // from inside the editor, so the UI doesn't appear frozen + FSlateApplication::Get().PumpMessages(); + FSlateApplication::Get().Tick(); + if (breakFunction(context)) return false;