From 5a0a47b8740a847e2524de0357af437e2b5b52ac Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 12 May 2023 12:02:14 -0400 Subject: Windows: Improve the frame rate of demos with vsync --- examples/pugl_vulkan_cpp_demo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/pugl_vulkan_cpp_demo.cpp') diff --git a/examples/pugl_vulkan_cpp_demo.cpp b/examples/pugl_vulkan_cpp_demo.cpp index bb1448d..eb41b09 100644 --- a/examples/pugl_vulkan_cpp_demo.cpp +++ b/examples/pugl_vulkan_cpp_demo.cpp @@ -1803,7 +1803,7 @@ run(const char* const programPath, const int refreshRate = app.view.getHint(pugl::ViewHint::refreshRate); const double frameDuration = 1.0 / static_cast(refreshRate); - const double timeout = app.opts.sync ? frameDuration : 0.0; + const double timeout = app.opts.sync ? frameDuration * 0.8 : 0.0; PuglFpsPrinter fpsPrinter = {app.world.time()}; app.view.show(pugl::ShowCommand::passive); -- cgit v1.2.1