mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +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…
Reference in New Issue
Block a user