UpdateOverlay function calls on unix platforms

This commit is contained in:
saschawillems 2017-11-01 13:29:57 +01:00
parent 853b318848
commit 00f080c046

View file

@ -337,11 +337,13 @@ void VulkanExampleBase::renderLoop()
if (fpsTimer > 1000.0f)
{
lastFPS = frameCounter;
updateTextOverlay();
fpsTimer = 0.0f;
frameCounter = 0;
}
// TODO: Cap UI overlay update rates/only issue when update requested
updateOverlay();
bool updateView = false;
// Check touch state (for movement)
@ -425,10 +427,10 @@ void VulkanExampleBase::renderLoop()
if (fpsTimer > 1000.0f)
{
lastFPS = frameCounter;
updateTextOverlay();
fpsTimer = 0.0f;
frameCounter = 0;
}
updateOverlay();
}
#elif defined(VK_USE_PLATFORM_WAYLAND_KHR)
while (!quit)
@ -474,10 +476,10 @@ void VulkanExampleBase::renderLoop()
wl_shell_surface_set_title(shell_surface, windowTitle.c_str());
}
lastFPS = frameCounter;
updateTextOverlay();
fpsTimer = 0.0f;
frameCounter = 0;
}
updateOverlay();
}
#elif defined(VK_USE_PLATFORM_XCB_KHR)
xcb_flush(connection);
@ -525,10 +527,10 @@ void VulkanExampleBase::renderLoop()
windowTitle.size(), windowTitle.c_str());
}
lastFPS = frameCounter;
updateTextOverlay();
fpsTimer = 0.0f;
frameCounter = 0;
}
updateOverlay();
}
#endif
// Flush device to make sure all resources can be freed