Skip to content

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

Done

Description

@lukaslw-lab

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.

Activity

  1. added a commit that references this issue on Nov 27, 2026
    98e4a2e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions