We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e0f9cd commit a5ed67dCopy full SHA for a5ed67d
engine/system/win/sys_main.cpp
@@ -842,10 +842,12 @@ bool sys_main_c::Run(int argc, char** argv)
842
843
// Run frame loop
844
while (exitFlag == false) {
845
- if (minimized)
846
- glfwWaitEvents(); // while minimized, puts process to sleep until it receives an event
847
- else
+ if (minimized) {
+ glfwWaitEventsTimeout(0.1);
+ }
848
+ else {
849
glfwPollEvents();
850
851
auto wnd = (GLFWwindow*)video->GetWindowHandle();
852
if (glfwWindowShouldClose(wnd)) {
853
Exit();
0 commit comments