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:
1 parent
162fa80075
commit
086e66cb3e
2 files changed
+45
-36
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user