MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / GcAwakeTransientWindowBuffers

Method GcAwakeTransientWindowBuffers

KBotExt/imgui/imgui.cpp:3826–3834  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3824}
3825
3826void ImGui::GcAwakeTransientWindowBuffers(ImGuiWindow* window)
3827{
3828 // We stored capacity of the ImDrawList buffer to reduce growth-caused allocation/copy when awakening.
3829 // The other buffers tends to amortize much faster.
3830 window->MemoryCompacted = false;
3831 window->DrawList->IdxBuffer.reserve(window->MemoryDrawListIdxCapacity);
3832 window->DrawList->VtxBuffer.reserve(window->MemoryDrawListVtxCapacity);
3833 window->MemoryDrawListIdxCapacity = window->MemoryDrawListVtxCapacity = 0;
3834}
3835
3836void ImGui::SetActiveID(ImGuiID id, ImGuiWindow* window)
3837{

Callers

nothing calls this directly

Calls 1

reserveMethod · 0.80

Tested by

no test coverage detected