Addressed an issue where the console enabling would freeze the game
This commit is contained in:
@@ -324,8 +324,8 @@ static void EnableConsole()
|
|||||||
auto start = std::chrono::high_resolution_clock::now(); // Measure the time to renable console
|
auto start = std::chrono::high_resolution_clock::now(); // Measure the time to renable console
|
||||||
UEngine* Engine = nullptr;
|
UEngine* Engine = nullptr;
|
||||||
|
|
||||||
for (int i = 0; i < 100; ++i) { // gives 10 seconds to find UE Engine
|
for (int i = 0; i < 10; ++i) { // gives 10 seconds to find UE Engine
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
|
||||||
Engine = UEngine::GetEngine();
|
Engine = UEngine::GetEngine();
|
||||||
if (Engine && Engine->ConsoleClass && Engine->GameViewport)
|
if (Engine && Engine->ConsoleClass && Engine->GameViewport)
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user