Repository navigation
Budget: split upload= by creator (Part of #3676 item c) - #3715
Conversation
The x2w-budget upload column stays the total. Columns beside it attribute that total to the ring, device slots 27 and 127, the slot 70 fallback, slot 148 pages, linear staging, the Mesh86 slot map, and every other upload heap. AI-assisted (Cursor) Co-authored-by: SimSalabimse <SimSalabimse@users.noreply.github.com>
|
Windows test at b45c0ad: first Windows build of the resource_budget.h changes succeeded. WARP: 8/8 passed (startup_resource_budget_creators_warp, startup_resource_budget_warp_debug0/1 with their inline controls, upload_budget, startup_triage_run, and the triage CLI check). Hardware twins: 5/5 passed. AI-Assisted |
|
Measured the creator split on the Windows test PC with this branch combined with #3716 on main a061032, gfx2hlsl translate mode, about 7 minutes from startup into the first playable 3D area (prologue). Live upload heap by creator,
So in-world, the slot-70 creator holds about 89% of live upload memory, and the ring stays small. Local GPU memory at the last line was 9,746,374,656 of a 11,187,499,008 budget. No device removal in the run. AI-Assisted |
Leyukaka
left a comment
There was a problem hiding this comment.
The Windows PR job ran startup_triage_run, but its 257 tests do not include upload_budget or startup_resource_budget_creators_warp. Could both targets and tests be added to the pr presets so subsequent changes exercise the creator accounting on WARP?
check_creators takes its final snapshot while created27 is still live. Releasing that wrapper and taking one more snapshot would exercise the other half of the log contract: one object and its allocation size should move from live to retained in both upload and upload_slot27, with the other creator counts unchanged.
Build and run the portable upload budget check and the WARP creator fixture in the pull request preset. Verify that releasing slot 27 moves its aggregate and creator charge from live to retained. AI-assisted (Cursor) Co-authored-by: SimSalabimse <SimSalabimse@users.noreply.github.com>
|
Added both targets and tests to the PR presets; the test selection now adds exactly AI-Assisted |
R0Y00
left a comment
There was a problem hiding this comment.
I merged current main into the PR branch and resolved CMakePresets.json, preserving its new targets and test selections alongside upload_budget_check, startup_resource_budget, upload_budget, and startup_resource_budget_creators_warp. Both new tests are listed by the pr preset. The Windows Debug run of ctest --preset dev --no-tests=error -j 1 -R '^(upload_budget|startup_resource_budget_creators_warp)$' --output-on-failure passed 2/2. The GPU case used WARP (10.0.26100.9818) on Windows 11 26300.9974 with the preset's debug layer off. New hosted checks are running on the integrated head.
R0Y00
left a comment
There was a problem hiding this comment.
The Linux failure was the export census (d3d12_xs entries 80 != 79). I pushed a test-only follow-up that counts and checks the source evidence of the existing test hook x2w_budget_mesh86_upload_for_test. python -B tests/standin_exports_check.py now passes 472 cases with 6/6 mutations killed, and python -B tests/startup_triage_run_check.py passes. No budget runtime code was changed in this follow-up. Please review 2638480a once CI has run.
|
I reviewed 2638480. It's test-only: d3d12_xs is now 80 with 45 unmeasured, and x2w_budget_mesh86_upload_for_test is checked by name with its source in src/startup_stubs/d3d12_xs_device.cpp. I ran tests/standin_exports_check.py (472 cases, 6/6 mutations killed) and tests/startup_triage_run_check.py; both passed. It looks right, and CI is green. AI-Assisted |
R0Y00
left a comment
There was a problem hiding this comment.
Revalidated 7477451 with MSVC Debug on Windows 11 build 26300. The local upload_budget, both startup_resource_budget_creators cases, and startup_triage_run passed 4/4 (WARP 10.0.26100.9818 and RTX 4060 Laptop 32.0.16.1656 for the GPU cases). The trial merge into 2398613 conflicts only in CMakePresets.json. Please keep the upload budget target and both creator selections alongside the Mesh86 additions now on main. The export catalog change is still awaiting another reviewer.
|
Reply to #3715 (review): Merged current Run on the Windows test PC (Debug build of the merged head): AI-Assisted |
R0Y00
left a comment
There was a problem hiding this comment.
I independently checked 0e300171 with MSVC Debug. ctest --preset dev --no-tests=error -j 1 -R '^(startup_resource_budget_creators_(warp|hardware)|upload_budget|startup_triage_run|standin_exports_check)$' passed 5/5 on Windows 11 build 26300, WARP 10.0.26100.9818 and RTX 4060 Laptop 32.0.16.1656. The catalog passed 477 checks and caught six mutations. A trial merge onto 75759370 still conflicts in CMakePresets.json and tests/standin_exports_check.py. Please keep the new XMem selection from #3697 and the existing Mesh86 material resolver export alongside this branch's upload-budget coverage.
R0Y00
left a comment
There was a problem hiding this comment.
I resolved the conflicts on c4b0a933 after #3728 landed. The PR preset lists both upload-budget tests alongside the existing XMem and Mesh86 selections. The catalog retained checks for the main-branch Mesh86 material resolver and this PR's upload test export. Independent MSVC Debug ctest --preset dev --no-tests=error -j 1 --output-on-failure -R '^(startup_resource_budget_creators_(warp|hardware)|upload_budget|startup_triage_run|standin_exports_check)$' passed 5/5, including WARP and RTX 4060 Laptop. The integrated export census passed 478 checks with six mutations caught. The current review request is still open for the integration.
|
Integration note for #3715 and #3716: each adds one export and bumps the same census counts. The current heads merge cleanly in Git, but I tested the combined tree and |
|
#3716 has landed in |
|
After #3732 landed, the only Git conflict against I also rebuilt the same trial merge and ran all ten |
…-by-creator Co-authored-by: SimSalabimse <SimSalabimse@users.noreply.github.com> # Conflicts: # CMakePresets.json
The upload-budget export and the GPU-to-CPU census export are both unmeasured, so the catalog is 86 entries with 51 unmeasured. Co-authored-by: SimSalabimse <SimSalabimse@users.noreply.github.com>
R0Y00
left a comment
There was a problem hiding this comment.
Re-reviewed ec6de0f. The PR preset retains both the creator check and main's slot-148 reserve check, and the export catalog now counts 86 entries. Independent MSVC Debug on Windows build 26300: ctest --preset dev -j 1 --no-tests=error --output-on-failure -R '^(startup_resource_budget_.*|upload_budget|startup_upload_reserve|startup_triage_run|standin_exports_check)$' passed 14/14 with no skips. That includes WARP and RTX 4060 Laptop 32.0.16.1656 creator accounting, debug on/off and inline controls, the reserve fixture, and triage/catalog checks. I used /DEBUG:NONE for the local linker after a PDB limit. Compilation and test settings stayed in the Debug preset.
Part of #3676 item (c). Claim: #3676 (comment)
The
x2w-budgetline keepsupload=as the total and adds seven creator columns betweenupload=andreadback=:upload_ring,upload_slot27,upload_slot70,upload_slot148,upload_linear,upload_mesh86andupload_other, each in the live/retained form. They add up toupload=.Linux:
upload_budget_checkpasses on g++ and clang++ with-Werror=narrowing, andstartup_triage_run_check.pypasses.resource_budget.hneedsd3d12.h, so the live/retained charge sites have not been compiled yet. The Windows test PC build and WARP run ofstartup_resource_budget_creators_warpare still to come. This PR is a draft until then.#3491 changes
report_budget's signature and the local/nonlocal sources. This change leaves both alone, but it shares the category buffer (640 to 2048 bytes) and the print loop, so a small rebase may be needed if #3491 merges first.AI-assisted (Cursor)