Roblox backend: keep 4 prewarmed tiles in the free list (Heartbeat, one per call, never evicting)

A growing layer takes them instead of creating an EditableImage + ImageLabel mid-frame (~90 us per tile in
Studio vs ~7 us from the free list). GetTile: one path for new and recycled tiles (NewTile).
This commit is contained in:
4DBug committed 2026-10-21 01:24:28 -05:00
1 parent 162fa80075
commit 086e66cb3e
2 files changed
+45 -36

No files matched your search

+1
View File
@@ -213,6 +213,7 @@ function ImGui_ImplRoblox_Init(parent, render_scale)
elseif BackendData.Stale and BackendData.HeartbeatCount > BackendData.StaleHeartbeat then
ImGui_ImplRoblox_RenderDrawData(BackendData.Stale)
end
Layers.Prewarm()
BackendData.HeartbeatCount += 1
end)