Roblox backend: a primitive's texture, texture id, vertex buffer and clip rect are its draw command's (PrimCmd -> Cmd* arrays, numbered through the frame) instead of 7 per-primitive arrays: CollectPrims writes 11 instead of 17 values per primitive, HashTiles / RasterRect / PrimHash / Parallel.Tile read them through PrimCmd (headless instructions per frame: implot -0.23M, plots -0.1M, scroll -0.09M, fonts -0.08M, resize -0.03M; CollectPrims -10%; pixels identical)

This commit is contained in:
4DBug committed 2026-10-24 05:55:53 -05:00
1 parent 8e6abeede9
commit 7c21be04de
3 files changed
+49 -38

No files matched your search

+1 -1
View File
@@ -140,7 +140,7 @@ function ImGui_ImplRoblox_Init(parent, render_scale)
Textures = Textures.Records, MouseX = -1, MouseY = -1,
Layers = {}, Overlays = {}, OverlayHolders = {}, OverlayShown = {}, FrameNo = 0, Scale = render_scale or 1,
TilesActive = false, RenderRate = 60, BusyRenderRate = 0, RedrawBudget = 0, HeartbeatCount = 0,
NextRender = 0, LastPrimCount = 0, ForceRedraw = true,
NextRender = 0, LastCmdCount = 0, ForceRedraw = true,
}
io.BackendPlatformUserData = BackendData
EditableImages.Backends[BackendData] = true