| 3824 | } |
| 3825 | |
| 3826 | void 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 | |
| 3836 | void ImGui::SetActiveID(ImGuiID id, ImGuiWindow* window) |
| 3837 | { |