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). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
db1ff2d28b
commit
a94c7a3417
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