Repository navigation
Conversation
Over its video memory budget a process has heaps demoted to system memory, and Windows has no hint which matter. XCL_RESIDENCY_PRIORITY (xcl-dev#3156) gives render-target arenas, window tile pools and texture page pools holding targets HIGH, so idle texture pages are demoted first. It was off unless XCL_RESIDENCY_PRIORITY=1. Measured on an RTX 4080 16 GB (Windows) in four world runs on xcl-dev#3156: 3.37 / 3.49 presents/s with it against 2.22 / 2.39 without (+50 %). lucsoft's A/B on an AMD RX 7800 XT under Linux/RADV shows no change. Windows + AMD is not measured yet. It is now on unless XCL_RESIDENCY_PRIORITY=0, which turns it off. The parse moves into residency_priority_enabled so a unit test covers unset, 0 and 1. Part of xcl-dev#505 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
merge-check AI-written and posted by Foniass without a human check of each point. |
|
One correction to the evidence above: the four runs behind "+50 %" used AI use: Claude Code (Claude Opus 5.5). |
|
Same-build check for the default flip: AI use: Claude Code (Claude Opus 5.5). |
XCL_RESIDENCY_PRIORITY(#3156) gives XCL's own heaps (render-target arenas, window tile pools, texture page pools holding targets)D3D12_RESIDENCY_PRIORITY_HIGH, so that over the video memory budget Windows demotes idle texture pages first. It was off unlessXCL_RESIDENCY_PRIORITY=1. This turns it on by default;XCL_RESIDENCY_PRIORITY=0turns it off. Part of #505.Evidence: on an RTX 4080 16 GB (Windows), four world runs on #3156 gave 3.37 / 3.49 presents/s with it against 2.22 / 2.39 without (+50 %). lucsoft's A/B on an AMD RX 7800 XT under Linux/RADV (comment on #3156) shows no change. Missing: a Windows + AMD run. If you have one, please run the title in the world with and without
XCL_RESIDENCY_PRIORITY=0and post the presents/s here or on #3156.What is in it
crates/xcl/src/hle/d3d12x/vram.rs: the parse moves intoresidency_priority_enabled(on unless the value is0), the doc comments say so, andresidency_priority_is_on_by_defaulttests unset,1,0and0.README.md: one bullet for the heap priority and the switch.Tested
cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4on 5b8ac52: 2905 passed, 0 failed, 51 ignored (sum of thetest resultlines).SKIPPEDon this adapter: the wave64 variants of thegpu::recomp::lower/lower_dxiltests anddispatch_chain_native_wave64_builds_whole(no wave64);heap_window_out_of_memory_falls_back_to_the_switch_formandhle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap(no heap windows);shaders::tests::pso_measurement_compiles_an_exact_synthetic_record(driver cache cannot be disabled).Regression run
scripts/smoke.ps1, 120 s, release build):Not tested
AI use
🤖 Generated with Claude Code