Proton/Linux fixes, orphaned view-guard recovery, Series S target room, and refresh fast-paths #1492
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1492
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1492"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Skanetdima on GitHub · 2026-11-28 20:46 UTC · original
linux-proton-opts→main· +1049 −163 · 10 files · 1 commits · closed without mergingSummary
Collected stability, VRAM-budget, CPU-preparation, and Linux/Proton support improvements tested on an 8 GiB RTX 5060 Laptop under
GE-Proton11-14-x86_64(umu-run/vkd3d-proton):1. Crash & Memory-Guard Fixes (
watch.rs,xmem.rs,lib.rs)PAGE_READONLYview-guard recovery (watch::recover_orphaned_view_guard): Inon_write, if a write faults on a committedMEM_MAPPEDPAGE_READONLYblock with activexmemphysical pages (inplace::pages_of), recover by opening the block and its aliases (unguard_one) and logging diagnostics instead of returningEXCEPTION_CONTINUE_SEARCH. Observed preventing 4 write-fault crashes across a 50-minute playthrough.UnmapViewOfFile2failure handling (xmem::unmap): IfUnmapViewOfFile2fails, log a warning and callvictory_gpu::title_memory_remappedso view guards do not remain orphaned read-only; log non-RWtitle_virtual_protectcalls (rate-limited).watch.rs,xmem.rs,lib.rs): TrackXMemVirtualAllocplaceholders (title_memory_placeholder/PLACEHOLDER_RESERVED) andMEM_WRITE_WATCHregions (title_memory_write_watch/WRITE_WATCH_RES) to avoid failing/repeatedGetWriteWatch+VirtualQueryprobes on Wine/Proton and keepask_aheadmerges inside known write-watch reservations.2. VRAM Budget & Texture Queue (
resource.rs)targets_room_kept()reserve (resource.rs): Set the default target reservemostto1536 << 20onConsole::SeriesS(3072 << 20onSeriesX, still overridable viaVICTORY_CARD_ROOM_FOR_TARGETS_MB). On Series S, render targets plateau around ~1.5 GiB, so the 3072 MiB threshold could keeptargets < most / 2and withhold ~1.5 GiB from texture uploads indefinitely.3. Write-Watch & Refresh CPU Fast-Paths (
watch.rs,shadow.rs,host.rs)AHEAD_KEPTshort-circuit & deduplicatedask_rest(watch.rs,host.rs): Skip redundantrangesfiltering/sorting inBatch::flush_all,Batch::refresh_front,ask_ahead,ask_ahead_done, andask_once_endwhenVICTORY_ASK_ONCE=1already holds the submission's journal snapshot. Deduplicate/merge leftover(first, last)ranges inask_rest, takeWRITE_WATCH_RESonce per batch, and keepj.aheadsorted/coalesced forO(log K)ahead_containslookups.nothing_newpre-filter (watch.rs,shadow.rs,host.rs):Shadow::copiedandShadow::rangedunder oneMutex<CopiedState>.Shadow::pending_len(AtomicUsize) andShadow::whole_copied_at(AtomicU64) +watch::nothing_new_whole_inso unchanged copies avoidpending,copied, andrangedmutex acquisitions.Batch::refresh_frontandBatch::flush_allunder onewatch::journal_view()before dispatching dirty items (>= 4) towide_each.4. MnK & Linux Launch Helpers (
gameinput.rs,lifecycle.rs,scripts/)Source::mousedeltas whilemnk::enabled()owns cursor centering, and enable mouse capture whenmnk::enabled()is active.scripts/play-linux.sh(Series S / 8 GiB Proton baseline withVICTORY_LEVELS_ON_DEMAND=1,VICTORY_AMBIENT_ONCE=1,VICTORY_WAIT_RESIDENT=0,VICTORY_WIDE_SPIN=100,VICTORY_CARD_BUFFERS_MIN_KB=1024,VICTORY_TEXTURE_STAGE_MS=8) andscripts/get-nvidia-sdks-linux.sh.Testing
Cross-compiled with
cargo xwin(x86_64-pc-windows-msvc) and executed underGE-Proton11-14-x86_64(umu-run):cargo xwin build --release --locked -p victory --target x86_64-pc-windows-msvc --xwin-arch x86_64(0 warnings)watch::tests: 37 passed, 0 failedwatch::many_askers_tests::ahead_kept_tracks_ask_once_lifecycle&sort_coalesce_and_ahead_contains: 2 passed, 0 failedhost::refresh_tests: 4 passed, 0 failed (2 ignored benchmarks)shadow::land_tests: 2 passed, 0 failedresource::tests: 20 passed, 0 failedambient::tests: 5 passed, 0 failedxmem::tests: 22 passed, 0 failed, 1 ignored benchmark@Skanetdima on GitHub · 2026-11-28 21:30 UTC · original
Closing PR (cleanup).
Pull request closed