mirror of
https://github.com/wolfpld/tracy
synced 2025-05-07 23:43:52 +00:00
Skip rendering if viewer window is minimized.
This commit is contained in:
parent
43255b01fa
commit
78e14b4bee
@ -113,6 +113,13 @@ int main( int argc, char** argv )
|
||||
while (!glfwWindowShouldClose(window))
|
||||
{
|
||||
glfwPollEvents();
|
||||
|
||||
if( glfwGetWindowAttrib( window, GLFW_ICONIFIED ) )
|
||||
{
|
||||
std::this_thread::sleep_for( std::chrono::milliseconds( 50 ) );
|
||||
continue;
|
||||
}
|
||||
|
||||
ImGui_ImplGlfwGL3_NewFrame();
|
||||
|
||||
if( !view )
|
||||
|
Loading…
x
Reference in New Issue
Block a user