* Allow retaining warmed graphics pipelines in memory
(cherry picked from commit 6d3919be27cb679b7eeaec3c5c07e06eb49da122)
* Warn when resident pipelines have low Windows commit headroom
* Pass the Windows commit query size explicitly
1909217 was meant to add the row from 7feb80ee, but only a line holding a
single pipe landed, an empty row after LARP_DLSS_PATH. The row is the
original one, unchanged.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Store::trim drops kept levels only while the texture heaps' free space is
under what the budget asks for, and that free space counts every pool's
holes: with 1.0 GB of fragmented free space nothing was dropped. Set, the
variable drops the least recently kept past the cap first. Unset, as before.
The cap is the idea of PR #641 (ZerefDragnee1l), which applies
min(budget/8, 512 MiB) always; here it is opt-in until it is measured.
Clarify that LARP_REFLEX_SLEEP=0 is not a free throughput switch: skipping
pre-tick Reflex CPU sleep can keep ~1 additional frame queued on the host,
trading input-to-photon latency for copy/graphics queue overlap.
(cherry picked from commit 7feb80ee67)
Builds on "dlss: name NGX's result codes in errors and warnings".
When DLSS frame generation was given up after 8 failed generations in a
row, nothing was said of what to do about it, and nothing of the model
in use (refs #700: a comment there says the errors stopped after the
DLSS files were replaced; the cause is not proven).
- The line that gives DLSS up gets a second, indented line of what to
try: another version of nvngx_dlssg.dll in the model folder, with the
version of the one in use, or another generator (LARP_FRAME_GENERATOR=
fsr, mvfg or ditto, or the layer's menu). When a generator is given up
is as before, and so is the reason the menu shows. The other
generators' lines are as before.
- Where NGX reports no DLSSG.MultiFrameCountMax, 1 generated frame was
taken silently. An info line now says so, and that 3x and 4x may need
a newer nvngx_dlssg.dll, with the same version.
- The version is that of the file the process has loaded as
nvngx_dlssg.dll; where none is loaded by that name, that of the file
in the model folder, said as such, since NGX may run a model it
downloaded. It is read from the file's VS_FIXEDFILEINFO, found by its
signature with the structure version behind it: the signature alone
is also in the code of NVIDIA's files (three times before the
resource in the driver's 310.2.1), which is why the reader of the
first signature in apps/larp's agility.rs is not what is used here.
- The lines say where the model is looked for: the model folder
LARP_DLSS_PATH, or larp.exe's folder where the variable names none.
- docs: rows for LARP_FRAME_GENERATOR and LARP_DLSS_PATH, which the new
lines name.
Tested under Wine (larp-gpu's tests); not run against NGX. That NGX
loads the model under the module name nvngx_dlssg.dll is not verified.
(cherry picked from commit c6e27d2146)
Off unless LARP_AUDIO_LOCK=1. VirtualLock's APU heap blocks (XMA input
and rings), at most 1 GiB, after raising the process working-set quota.
A long session that pages most of larp's committed memory out can then
still serve a burst of new voices without waiting on those pages.
This is a mitigation for the crackle that grows over 15–60 minutes
(#566, #555): it does not fix the host memory leak itself, and it has
not yet been shown on its own to stop the crackle.
On Linux with Mesa RADV on an RX 6800, pipelines created from their
cached blobs (`pipelines/blobs-*`) drew corrupted geometry and hung the
GPU, while the same pipelines made anew with an empty blob folder ran
clean (#732). There was no way to skip the blobs and keep the lists of
earlier runs' pipelines. With `LARP_PIPELINE_BLOBS=0` the blob store is
not used: every pipeline is made without a blob and none is kept, while
`created-*.bin` are still read and written. Unset, nothing changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Linux with Mesa RADV on an RX 6800, pipelines created from their
cached blobs (`pipelines/blobs-*`) drew corrupted geometry and hung the
GPU, while the same pipelines made anew with an empty blob folder ran
clean (#732). There was no way to skip the blobs and keep the lists of
earlier runs' pipelines. With `LARP_PIPELINE_BLOBS=0` the blob store is
not used: every pipeline is made without a blob and none is kept, while
`created-*.bin` are still read and written. Unset, nothing changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Measured on a 12-thread, 32 GiB PC, the whole set made anew with the driver's own cache empty: 9 workers (before) 1,854 s, 12 while the title is held 1,703-1,731 s. The cap by installed memory lets 12 compile at once up to 32 GiB (11.5 GB private at most, 13 GB of the PC's memory still free). LARP_PIPELINE_HOLD_PRIORITY=normal is opt-in. A preload run leaves when the blob writer has none queued (120 s at most), not after a fixed 10 s. Optional launcher to exclude the pipeline cache from Windows Defender.