MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / GcAwakeTransientWindowBuffers

Method GcAwakeTransientWindowBuffers

include/imgui/imgui.cpp:4679–4687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4677}
4678
4679void ImGui::GcAwakeTransientWindowBuffers(ImGuiWindow* window)
4680{
4681 // We stored capacity of the ImDrawList buffer to reduce growth-caused allocation/copy when awakening.
4682 // The other buffers tends to amortize much faster.
4683 window->MemoryCompacted = false;
4684 window->DrawList->IdxBuffer.reserve(window->MemoryDrawListIdxCapacity);
4685 window->DrawList->VtxBuffer.reserve(window->MemoryDrawListVtxCapacity);
4686 window->MemoryDrawListIdxCapacity = window->MemoryDrawListVtxCapacity = 0;
4687}
4688
4689void ImGui::SetActiveID(ImGuiID id, ImGuiWindow* window)
4690{

Callers

nothing calls this directly

Calls 1

reserveMethod · 0.45

Tested by

no test coverage detected