Move try_log into update_hud() and fix formatting

pull/337/head^2
FlightlessMango 4 years ago
parent 968f3ab20c
commit 1c5baef992

@ -946,6 +946,10 @@ void update_hud_info(struct swapchain_stats& sw_stats, struct overlay_params& pa
}
if (params.log_interval == 0){
logger->try_log();
}
sw_stats.last_present_time = now;
sw_stats.n_frames++;
sw_stats.n_frames_since_update++;
@ -1194,9 +1198,6 @@ void render_mango(swapchain_stats& data, struct overlay_params& params, ImVec2&
static int tableCols = 2;
static float ralign_width = 0, old_scale = 0;
window_size = ImVec2(300, params.height);
if (params.log_interval == 0){
logger->try_log();
}
if (old_scale != params.font_scale) {
ralign_width = ImGui::CalcTextSize("A").x * 4 /* characters */;

Loading…
Cancel
Save