From b40e6c0b9a6c2f9cd41b30254a2629b93d4ea591 Mon Sep 17 00:00:00 2001 From: Azi Date: Thu, 25 Jul 2024 07:38:05 -0700 Subject: [PATCH] Fixing high GPU usage when color scheme is set to "Filament" or "Speed" (#6223) removed imgui.set_requires_extra_frame(), this line causes Slic3r::GUI::GLCanvas3D::render() to be called repeatedly when 'Filament' or 'Speed' is selected for preview panel --- src/slic3r/GUI/GCodeViewer.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/slic3r/GUI/GCodeViewer.cpp b/src/slic3r/GUI/GCodeViewer.cpp index e2a4f00a56..0d649b9a6a 100644 --- a/src/slic3r/GUI/GCodeViewer.cpp +++ b/src/slic3r/GUI/GCodeViewer.cpp @@ -4547,7 +4547,6 @@ void GCodeViewer::render_legend(float &legend_height, int canvas_width, int canv const auto preferred_offset = ImGui::GetWindowWidth() - ImGui::CalcTextSize(_u8L("Display").c_str()).x - ImGui::GetFrameHeight() / 2 - 2 * window_padding - ImGui::GetStyle().ScrollbarSize; if (preferred_offset > offsets.back()) { offsets.back() = preferred_offset; - imgui.set_requires_extra_frame(); } }