Skip to content

D3D12.X: return freed sparse tile runs sooner - #54

Draft
bmjask wants to merge 1 commit into
stack/050-refresh-title-fencesfrom
stack/051-sparse-pool-heaps
Draft

bmjask wants to merge 1 commit into
stack/050-refresh-title-fencesfrom
stack/051-sparse-pool-heaps

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #53.

This is an internal draft stack in bmjask/xcl; it is not an upstream merge request.

What and why

This unit isolates d3d12.x: return freed sparse tile runs sooner as one reviewable step in the redesign.

What is in it

  • 9811aa57 is the cleaned-stack form of integrated commit bf8ae63f.

The patch content is preserved; only ancestry changed to omit a canceled add/revert sequence.

Tested

Tests were not rerun while packaging this already-integrated change into the draft stack.

Regression run

Not run during stack packaging.

Not tested

  • Windows MSVC build and test suite
  • D3D12 GPU execution
  • scripts/smoke.ps1 main/head comparison

AI use

Codex, GPT-5.6-sol, removed canceled ancestry, created the stack branch, and drafted this description. It did not author new code during stack packaging.

…iles go back

A pool heap is released only when all its tiles are free, and a title frees its
tiles in runs spread over all its heaps. With heaps of 64 MiB (1,024 tiles) a
retail title's world load unmapped 1.5 GB of its 4.6 GB of tiles and 3 of 78
heaps went back: 1.7 GB of video memory stayed in live heaps as free tiles.
With heaps of 64 tiles 1.25 GB goes back and 0.2 GB stays.

retire_free_pools marks the pools that go with a flag each: a world load frees
hundreds of pools' worth of tiles at once.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/051-sparse-pool-heaps branch from f0cc12a to 7ca9a1a Compare November 27, 2026 05:14
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