Skip to content

d3d12: adapt large shader compile concurrency to available memory - #236

Draft
Valdi320 wants to merge 1 commit into
brcly:mainfrom
Valdi320:work/adaptive-large-compile-budget-20261126
Draft

Valdi320 wants to merge 1 commit into
brcly:mainfrom
Valdi320:work/adaptive-large-compile-budget-20261126

Conversation

@Valdi320

Copy link
Copy Markdown
Contributor

Change

Choose 1–4 simultaneous large pipeline compilations based on the smaller of available physical memory and available commit (GlobalMemoryStatusEx). Reserve 2 GiB and estimate 2 GiB per compile, as conservative initial heuristic rather than a hard memory guarantee. Always admit at least one compile; re-evaluate after a running compile completes. Preserve the explicit TUXBOX_LARGE_COMPILES override, including zero, and retain four slots if the memory query fails.

Validation

  • 9 native compile-gate tests and 10 tests of the exact module cross-compiled for Windows and executed using GE-Proton11-14 Wine in an isolated offline prefix; all passed. Actual guest query reported 8394 MiB available and selected three slots.
  • Rebuilt D3D12 provider; eight Lanes GPU gates passed on RTX 4080 (replay, benchmark, cache prepared/compiled/reused, narrow/host Wave64, raster tables). Staged the unchanged Lanes fixture with the newly built DLL. The translator used in these gates contains the independent paired-Wave64 optimization in xshader: avoid redundant reads in paired Wave64 local exchanges #234.
  • All six official no-GPU code-check groups passed.

Draft: full GPU suite on this exact branch, AMD and actual title large-pipeline memory/performance profiling remain outstanding. No claim of retail FPS improvements or prevention of every OOM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant