startup: after #2849 the upload ring still runs out in the post-load animation; closed lists pin their chunks until Reset #2948

Closed
opened 2026-11-26 22:45:39 +00:00 by lukaslw-lab · 0 comments
lukaslw-lab commented 2026-11-26 22:45:39 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-26T22:45:39Z.


After #2823 and #2849, the main executable's startup run (#870) exhausts the 256 MiB shared upload ring during the post-load animation. Refused copies leave translated draws with null buffer bindings; on screen these are single full black frames in otherwise correct animation sequences. #2837 was closed with #2849, whose fixtures cover a sequence where every chunk becomes free.

Windows 10 22H2, i7-4790K, RTX 3080 Ti, NVIDIA 32.0.16.1047, release, warm shader cache, run.ps1 -Render without -Translate, scripted input, same switches in each pair:

main 6ee878d8 same build, #2849 and #2823 reverted
Null bindings, cause buffer 265,907 0
upload ring reservation refused yes (from the menus on) none
Device removed 0x887a0006 after the load none (full 900 s)

A local census at every refusal (logging only) showed why recycling does not keep up:

  • Every chunk was held by command lists that were closed but not yet Reset; every queue had already passed the chunk's fence (no UINT64_MAX pins).
  • Recycling did happen (the 128 MiB chunk reached generation 191), but one or two held lists pin a whole chunk of up to 128 MiB.
  • Most refused requests were 64 KiB: the window upload_from_title copies for a graphics root SRV without an upload mapping.
  • The title never submitted a closed list again without a Reset: 0 of more than 500,000 submits over five runs.

Smaller chunks alone (16 MiB, 256 MiB cap) left 209 of 4,440 frames with a refused copy; a 512 MiB cap alone, 103 of 4,431.

Proposed in #2949: an opt-in X2W_D3D12_RING_RELEASE_AT_SUBMIT=1 that releases a closed list's holds at its fenced submit (the queue fence still guards the bytes), with 16 MiB chunks up to 512 MiB, and reports a later resubmit that would read reused bytes. The default stays as on main.

This report was prepared with AI assistance (Claude); the runs are mine.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6636317001 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/2948). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-11-26T22:45:39Z. --- After #2823 and #2849, the main executable's startup run (#870) exhausts the 256 MiB shared upload ring during the post-load animation. Refused copies leave translated draws with null buffer bindings; on screen these are single full black frames in otherwise correct animation sequences. #2837 was closed with #2849, whose fixtures cover a sequence where every chunk becomes free. Windows 10 22H2, i7-4790K, RTX 3080 Ti, NVIDIA 32.0.16.1047, release, warm shader cache, `run.ps1 -Render` without `-Translate`, scripted input, same switches in each pair: | | `main` `6ee878d8` | same build, #2849 and #2823 reverted | |---|---|---| | Null bindings, cause `buffer` | 265,907 | 0 | | `upload ring reservation refused` | yes (from the menus on) | none | | Device removed | `0x887a0006` after the load | none (full 900 s) | A local census at every refusal (logging only) showed why recycling does not keep up: - Every chunk was held by command lists that were closed but not yet Reset; every queue had already passed the chunk's fence (no `UINT64_MAX` pins). - Recycling did happen (the 128 MiB chunk reached generation 191), but one or two held lists pin a whole chunk of up to 128 MiB. - Most refused requests were 64 KiB: the window `upload_from_title` copies for a graphics root SRV without an upload mapping. - The title never submitted a closed list again without a Reset: 0 of more than 500,000 submits over five runs. Smaller chunks alone (16 MiB, 256 MiB cap) left 209 of 4,440 frames with a refused copy; a 512 MiB cap alone, 103 of 4,431. Proposed in #2949: an opt-in `X2W_D3D12_RING_RELEASE_AT_SUBMIT=1` that releases a closed list's holds at its fenced submit (the queue fence still guards the bytes), with 16 MiB chunks up to 512 MiB, and reports a later resubmit that would read reused bytes. The default stays as on `main`. This report was prepared with AI assistance (Claude); the runs are mine.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows#2948
No description provided.