Get actual frametime for logs

pull/337/head^2
FlightlessMango 4 years ago
parent cec98369ae
commit 9ddd075b18

@ -137,7 +137,7 @@ void Logger::try_log() {
currentLogData.previous = elapsedLog;
currentLogData.fps = fps;
currentLogData.frametime = 1000 / fps;
currentLogData.frametime = frametime;
m_log_array.push_back(currentLogData);
if(m_params->log_duration and (elapsedLog >= std::chrono::seconds(m_params->log_duration))){

@ -928,6 +928,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;
if (elapsed >= params.fps_sampling_period) {
std::thread(update_hw_info, std::ref(sw_stats), std::ref(params), vendorID).detach();

Loading…
Cancel
Save