Perf: ImDrawList vertices in a flat buffer (f64 pos/uv + u32 col); backend reads it directly and skips draw lists identical to last frame

This commit is contained in:
4DBug committed 2026-10-08 12:11:36 -05:00
1 parent 2427983d27
commit 676bcbc3d3
8 files changed
+396 -258

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ RunService.Stepped:Connect(function()
local want = ImGui.GetColorU32(G.ImGuiCol.WindowBg)
local found = false
for _, l in ImGui.GetDrawData().CmdLists:iter() do
for i = 1, l.VtxBuffer.Size do if l.VtxBuffer.Data[i][3] == want then found = true break end end
for i = 1, l.VtxBuffer.Size do if G.ImDrawVtx_Col(l.VtxBuffer.Buf, i) == want then found = true break end end
end
assert(found, "docked windows must draw a WindowBg background")
print("MOVE OK")