Don't log twice if interval is 0

pull/356/head
FlightlessMango 4 years ago
parent e25ffbafe0
commit d86a05d3a0

@ -999,9 +999,6 @@ void render_imgui(swapchain_stats& data, struct overlay_params& params, ImVec2&
window_size = ImVec2(params.width, params.height);
unsigned height = ImGui::GetIO().DisplaySize.y;
auto now = Clock::now();
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