diff --git a/src/overlay.cpp b/src/overlay.cpp index 0abf8e9..d68e9fb 100644 --- a/src/overlay.cpp +++ b/src/overlay.cpp @@ -83,7 +83,7 @@ void update_hud_info(struct swapchain_stats& sw_stats, struct overlay_params& pa now - sw_stats.last_present_time; } - frametime = now - sw_stats.last_present_time; + frametime = (now - sw_stats.last_present_time) / 1000; if (elapsed >= params.fps_sampling_period) { std::thread(update_hw_info, std::ref(sw_stats), std::ref(params), vendorID).detach(); sw_stats.fps = fps;