Addressed an issue where the console enabling would freeze the game

This commit is contained in:
2025-11-20 17:43:21 +01:00
parent a5310cc25f
commit a9ffe68eff

View File

@@ -324,8 +324,8 @@ static void EnableConsole()
auto start = std::chrono::high_resolution_clock::now(); // Measure the time to renable console
UEngine* Engine = nullptr;
for (int i = 0; i < 100; ++i) { // gives 10 seconds to find UE Engine
std::this_thread::sleep_for(std::chrono::milliseconds(100));
for (int i = 0; i < 10; ++i) { // gives 10 seconds to find UE Engine
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
Engine = UEngine::GetEngine();
if (Engine && Engine->ConsoleClass && Engine->GameViewport)
break;