|
|
@ -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.last_present_time = now;
|
|
|
|
sw_stats.n_frames++;
|
|
|
|
sw_stats.n_frames++;
|
|
|
|
sw_stats.n_frames_since_update++;
|
|
|
|
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 int tableCols = 2;
|
|
|
|
static float ralign_width = 0, old_scale = 0;
|
|
|
|
static float ralign_width = 0, old_scale = 0;
|
|
|
|
window_size = ImVec2(300, params.height);
|
|
|
|
window_size = ImVec2(300, params.height);
|
|
|
|
if (params.log_interval == 0){
|
|
|
|
|
|
|
|
logger->try_log();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (old_scale != params.font_scale) {
|
|
|
|
if (old_scale != params.font_scale) {
|
|
|
|
ralign_width = ImGui::CalcTextSize("A").x * 4 /* characters */;
|
|
|
|
ralign_width = ImGui::CalcTextSize("A").x * 4 /* characters */;
|
|
|
|