convert frametime from ns to us

control
FlightlessMango 3 years ago
parent 815097718e
commit 92282bcec2

@ -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;

Loading…
Cancel
Save