Repository navigation
victory-linux picks: crash/corruption fixes and submit-thread perf, behind switches (off by default) - #23
Open
oceansde012 wants to merge 13 commits into
Open
victory-linux picks: crash/corruption fixes and submit-thread perf, behind switches (off by default)#23oceansde012 wants to merge 13 commits into
oceansde012 wants to merge 13 commits into
Conversation
…rates at the copy's start (it wrapped: the first slice was never compared) Shadow::differing cuts ranges of 32 MiB or more into slices on piece boundaries; for a copy whose start is not on a piece, the first cut lay below it and the subtraction wrapped, so in a release build the first slice was never compared (changes there were missed). Upstream's test needs a helper this tree lacks; the fix alone. (victory-linux-av 4acf24a) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011E3imKzjNhFo4qDM5vuLSv (cherry picked from commit 515e7ecb7dbaab936eedc8eacc13751925783617) (cherry picked from commit 8abe6a20fba89d2889c61872aa41e481eab551ba)
…side their buffers instead of recording them (GPU page fault and whole-GPU reset on RADV) vkd3d-proton does not validate CopyBufferRegion; a range past a buffer's end is a write to an address of no allocation (on NVIDIA an MMU fault, Xid 31). Each card-step range is checked against its buffer and the staging buffer first. (victory-linux-av 999cded) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011E3imKzjNhFo4qDM5vuLSv (cherry picked from commit 1b9da0b65712e78af8c903520bed6cdf41ab6651) (cherry picked from commit 25d7cf306c9d2cbfd864f7c2108aa18dd088d9bf)
…itle buffer's copy is retired, not dropped at once, when the title releases it or registers a buffer again at the same place a-publier dropped the copy's Arc as soon as the title released the buffer; descriptors the title left in a heap and submissions in flight may still name the host buffer (Belobug main retires it; with rays its structure builders read freed copies, runs rt2/rt6). Freed memory in use on the GPU is a page fault (Xid 31 / device removed) on NVIDIA. (victory-linux-av af905cf) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011E3imKzjNhFo4qDM5vuLSv (cherry picked from commit 4704093558c504534ed9d1425df6e4c7c3d72c30) (cherry picked from commit a66d2ded4e37625289c200fe87a5e52e035f79f6)
…hen its build panics A panicking build left the entry unfinished (its draws dropped as 'being made' forever) and took the worker thread down. It is now refused (None), its waiters are woken, and the worker goes on. Adapted to the fork's Pending::make (OnceLock entry). (victory-linux-av b327d20) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011E3imKzjNhFo4qDM5vuLSv (cherry picked from commit 67a0d842baa266b12730b9acec2f673f2fb8f89f) (cherry picked from commit 5f5d14269fb59819f7a824f9e38c8ae320a12cde)
…BufferView gets a null desc A null description left the slot's previous view active. Here it records Constant(0, 0); a draw's table makes such a slot a null view instead of a 256-byte scratch constant buffer of size 0. (victory-linux-av 32a3fda) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011E3imKzjNhFo4qDM5vuLSv (cherry picked from commit bb47875bd851d86de048b64f3ad0a6d2687647fd) (cherry picked from commit 4727599ef01f62976f6eaedda6f2607a263b8091)
…ld not fail gracefully SetName walked the title's UTF-16 name until a NUL, unbounded and without fault safety (a stale pointer faulted inside the title's call); it now reads at most 2 KiB through host::read_there. A shader cache key shorter than the 32-byte build fingerprint is an error, not a panic. Adapted to the fork's shader cache (no per-source key). (victory-linux-av d0aa363) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011E3imKzjNhFo4qDM5vuLSv (cherry picked from commit bde81d8a040d7c2d800d5314144c6ac66531482e) (cherry picked from commit ddd5f7eac54f3120f00bf3c95b422dc3260d19b4)
…ission are released on a thread of their own bury() dropped retired resources and host copies on the thread that finished the submission (the submitting/relay thread). Under Wine each release is a vkd3d-proton/Vulkan free. They now go to a victory-release thread; VICTORY_RELEASE_THREAD=0 drops them in place as before (on by default). Adapted to the fork's single RETIRED list. (victory-linux-av 7bc9981) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011E3imKzjNhFo4qDM5vuLSv (cherry picked from commit 4285f50d2da65c34519adc7a655c10ba7f4de5e4) (cherry picked from commit 9468f6137b5ad148e419af7c96c22820878055de)
…and refresh_front (cherry picked from commit cc4689773b8febf18c48793154bd5401e1d0c6b4)
(cherry picked from commit 86b3c8a52a8593235ec6810c3452b6212805b329)
…aths of the world shadow::find_pieces compares pieces with safecopy::differ (AVX2) instead of a slice compare (memcmp is a scalar loop under Wine: 3% of process time in the world). A draw's listed view (and raw SRV/UAV/CBV writes) take no new reference when the slot already holds the resource (one AddRef/Release saved per table slot). Partly: the find_pieces half only. The descriptor keep() half (Cow references) is left out: the fork's descriptor/host.rs differs there, and it saves one AddRef/Release per slot. (victory-linux-av 4beb902) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011E3imKzjNhFo4qDM5vuLSv (cherry picked from commit f40c7dc6970b86662a4d205ddd0f7508731649e8) (cherry picked from commit 9e652cf550fca50a0cdf262c64d5269e57684304)
A draw whose pipeline is not ready within the frame's budget is dropped and drawn again next frame. A dispatch may not be drawn again: the title runs some compute passes once, when a scene changes, and what they leave is read for as long as the scene lasts. A compute program met for the first time took 4.4 s to make on a 16 GB machine; its one dispatch was dropped after the half second of budget, and the windows of the room before stayed blended over the picture for minutes (run 195). A compute pipeline now waits for its own making, whatever the budget; a draw still waits within the budget. The pipeline library has it on the next run. `VICTORY_PIPELINE_COMPUTE_WAIT=0` restores the old behaviour. Ported from fxceless/victory-fork a42b627 (pull request #1312), GPL-3.0-or-later. (cherry picked from commit 56ec2afb0c3d6ba9dd75dae0e23acd2871443890) (cherry picked from commit ad0987efb3a653cdff6b4ca378a150b79a0495c5)
…ispatch With VICTORY_PIPELINE_COMPUTE_WAIT on (the default) a compute dispatch makes its pipeline on the spot, however long that takes. With an empty cache the first cutscene met 457 compute programs in one frame at about a second each: the frame did not end for over 30 s and the title's own hang watchdog stored to address 0 (+0x23cf683, #1420). A frame now waits for such pipelines up to VICTORY_PIPELINE_COMPUTE_WAIT_MS (8,000 by default, summed over threads); after that its dispatches wait within the frame's budget as with VICTORY_PIPELINE_COMPUTE_WAIT=0. The first 600 frames (loading) still make theirs whatever it costs. (cherry picked from commit 74113b0933a8bbce5de8abde4efd83280b2e2079) (cherry picked from commit 34df6a2b28291fdb7bd966250e4afff7b308f24e)
…DeepSeek) VICTORY_VL_FIXES=1: #1407 saturating slice cut, #351 card-step range check, 40b8b9b copy retired on release/re-register, #1353 pipeline panic caught, #2449 null CBV, #460 bounded object name read. Existing switches flipped to off by default: VICTORY_RELEASE_THREAD, VICTORY_PIPELINE_WAIT_ONCE, VICTORY_PIPELINE_COMPUTE_WAIT (=1 turns each on). With no switch set the runtime behaves as f4b48ad. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FLuVRo3QUxptK4ewrJh4AG
Owner
Author
|
CI
The other open Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Vlad · project thread
Picks from victory-linux/victory-nvidia (HEAD
1b1bff7, the "34.3 fps" Linux fork), on top off4b48ad. All sources GPL-3.0-or-later (fxceless, Marvisak, Belobug, avatarmanz, tiadiff, armin); none touches XCL-derived files. With no switch set the runtime behaves asf4b48ad.VICTORY_VL_FIXES=1Existing switches, default flipped to off (
=1turns on)VICTORY_RELEASE_THREAD: D3D12 objects released off the submit thread (Marvisak 3e10052c).VICTORY_PIPELINE_WAIT_ONCE: no repeated per-frame waits for slow pipelines (tiadiff).VICTORY_PIPELINE_COMPUTE_WAIT(+_MScap, 8 s): a compute dispatch waits for its pipeline, so one-shot passes are not lost (fxceless #1312, armin).Unconditional, results identical
cc46897: scratch allocations removed from hot paths.safecopy::differinstead of!=.Left out: fxceless #1371 RTV/DSV records (struct rework, hard to gate), #1380 (XCL-derived file), shader-translator fixes, PR #814 texture streaming (conflicts). Details:
reports/victory-linux-2026-11-28.mdin project files.Code gating by DeepSeek, reviewed by Claude. Cloud
cargo check --workspace --all-targetsfor the Windows target is OK, with no new warnings. The game was not run (user rule). Free env test for the next PC batch:VICTORY_CARD_AWAKE=0against the launcher's1.Generated by Claude Code