Browse Source

Fonts: GC Compact All exposed in Metrics->Memory Allocations includes compacting texture data.

ocornut 5 tháng trước cách đây
mục cha
commit
074bf39e40
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      imgui.cpp

+ 1 - 0
imgui.cpp

@@ -4394,6 +4394,7 @@ void ImGui::GcCompactTransientMiscBuffers()
     g.MultiSelectTempDataStacked = 0;
     g.MultiSelectTempData.clear_destruct();
     TableGcCompactSettings();
+    g.IO.Fonts->CompactCache();
 }
 
 // Free up/compact internal window buffers, we can use this when a window becomes unused.