diff options
| author | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2026-04-04 14:45:41 +1100 |
|---|---|---|
| committer | Nicolas James <Eele1Ephe7uZahRie@tutanota.com> | 2026-04-04 14:45:41 +1100 |
| commit | 6b4dd1fb3d5fffd0c43fc40352720e0266651c38 (patch) | |
| tree | 80b2765ff5743aa0bd074d8f19fcfecbbd607b29 /src/swapchain_monitor.cc | |
| parent | 2d2f193797a598c807a7d9eb43d9b60a35216ca8 (diff) | |
Fix erroneous microsecond conversion to milliseconds
Diffstat (limited to 'src/swapchain_monitor.cc')
| -rw-r--r-- | src/swapchain_monitor.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/swapchain_monitor.cc b/src/swapchain_monitor.cc index fec0f93..492e83e 100644 --- a/src/swapchain_monitor.cc +++ b/src/swapchain_monitor.cc @@ -2,6 +2,7 @@ #include "device_context.hh" #include "helper.hh" +#include <chrono> #include <vulkan/vulkan_core.h> #include <functional> @@ -17,7 +18,7 @@ SwapchainMonitor::~SwapchainMonitor() {} void SwapchainMonitor::update_params( const bool was_low_latency_requested, - const std::chrono::milliseconds present_delay) { + const std::chrono::microseconds present_delay) { const auto lock = std::scoped_lock{this->mutex}; |
