Parallel: Actors free destroyed textures (each atlas grow/repack left a full copy in every Actor), atlas patches send the updated glyph rects instead of whole row spans and are built once per version for all Actors (fonts tex sends 151 -> 91 KB/frame in Studio, TexBytes 35.6 -> 22.2 MB headless); Actor texture handling moved to Raster.ApplyTextures, which Sync mode now runs on per-Actor copies so t_parallel checks it; t_parallel fonts scenario (new size per frame), check_all runs 620 frames
This commit is contained in:
1 parent
f243737fb9
commit
4cc328560d
6 files changed
+157
-38
No files matched your search
@@ -41,7 +41,7 @@ CHECKS=(
|
||||
"pixels|PIXELS SAME|a=\$($R --main tools/test/scripts/t_pixels.luau --frames 600 | grep -P '^PIX\t'); b=\$(RUN_FLAGS=ARG_FORCE=true $R --main tools/test/scripts/t_pixels.luau --frames 600 | grep -P '^PIX\t'); [ -n \"\$a\" ] && [ \"\$a\" = \"\$b\" ] && echo PIXELS SAME"
|
||||
"rect_flip|RECTFLIP OK|$R --main tools/test/scripts/t_rect_flip.luau --frames 30"
|
||||
"tile_bound|TILEBOUND OK|$R --main tools/test/scripts/t_tile_bound.luau --frames 200"
|
||||
"parallel|PARALLEL OK|$R --main tools/test/scripts/t_parallel.luau --frames 500"
|
||||
"parallel|PARALLEL OK|$R --main tools/test/scripts/t_parallel.luau --frames 620"
|
||||
"pool_ctx|POOLCTX OK|$R --main tools/test/scripts/t_pool_ctx.luau --frames 60"
|
||||
"assets_scroll|ASSETS OK|$R --main tools/test/scripts/t_assets_scroll.luau --frames 1010"
|
||||
"shot|wrote|python3 tools/test/shot.py /tmp/imgui_shot.png --app"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
-- PreSimulation -> PostSimulation), open with SyncDrop (half the worker results lost -> Finish falls back), and closed
|
||||
-- (late RenderDrawData: rasterized + uploaded at once). The composites of A and B must match at every checkpoint.
|
||||
-- Prints the executor's main-thread pack cost per frame next to A's inline raster + upload cost.
|
||||
-- run: python3 tools/test/run.py --main tools/test/scripts/t_parallel.luau --frames 900 --quiet --roblox
|
||||
-- run: python3 tools/test/run.py --main tools/test/scripts/t_parallel.luau --frames 900 --quiet --roblox (5 scenarios: >= 600)
|
||||
local RS = game:GetService("ReplicatedStorage")
|
||||
local G = require(RS:WaitForChild("ImGui"))
|
||||
local ImGui, ImVec2 = G.ImGui, G.ImVec2
|
||||
@@ -85,6 +85,14 @@ local SCEN = {
|
||||
ImGui.Text("frame %d", f)
|
||||
ImGui.End()
|
||||
end },
|
||||
{ "fonts", function(f) -- a new font size every frame: glyph uploads, atlas grow/repack (Actor texture patches)
|
||||
ImGui.SetNextWindowPos(ImVec2(40, 30), G.ImGuiCond.Always); ImGui.SetNextWindowSize(ImVec2(620, 600), G.ImGuiCond.Always)
|
||||
ImGui.Begin("Fonts")
|
||||
ImGui.PushFont(nil, 12 + (f * 0.25) % 40)
|
||||
for i = 1, 12 do ImGui.TextWrapped("Line %d: the quick brown fox jumps over the lazy dog, %d times.", i, f) end
|
||||
ImGui.PopFont()
|
||||
ImGui.End()
|
||||
end },
|
||||
}
|
||||
|
||||
local ctx, gui = {}, {}
|
||||
|
||||
Reference in new issue
Block a user