Repository navigation
Conversation
…SENT_CACHE=1) Every asking looked the absent blocks of each uncommitted region up again with VirtualQuery. Under Wine each one takes the process-wide lock that every thread queues at: ErRusso/ViceTux counted 75,000-216,000 a second (RTX 4060, Ryzen 7 7700X, Proton Experimental), as kroeeee-eeee/VIctory-Linux-Proton-Wine-7900XT-XTX f5c30ef had. With VICTORY_ABSENT_CACHE=1 the regions found are kept until the runtime maps, commits or allocates memory over them (title_memory_remapped, title_memory_made_real, title_memory_allocated), and all are asked again every 8 frames. Off by default: memory committed without the runtime hearing of it is taken for a hole until then (the existing writes_in_partly_committed_view_blocks_are_reported fails with it on), and it has not been measured on this tree, which asks fewer of these questions under Wine since ee85549. Ported from ErRusso/ViceTux 34bc73ab. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- scripts/build-wineserver-viewtree.sh: builds the Wine server that keeps mapped views in a tree (Wine bug 60868) for the installed Proton Experimental, from Proton's own Wine commit and kroeeee-eeee's patch (fetched at a fixed commit, checked by SHA-256, not kept here), and a Proton of links that uses it, for umu-run's PROTONPATH. docs/linux-proton.md already measured that server (13.7-15.3 to 19.1-19.3 fps on an RTX 4090); ViceTux: the write watch from 25-90 ms a frame to 3-6 ms on an RTX 4060. - scripts/fast-copy.sh: copies the ~108 GB the title streams most to an SSD and links the rest, so the folder works as the dump: textures waited a mean 23 s for their data from a hard disk, 3 s from the SSD (ViceTux). - docs/linux-proton.md: both, and VICTORY_ABSENT_CACHE. Ported from ErRusso/ViceTux 13fa9040 and 7912f766. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The script stops with a bare On a build whose
That Two changes, on top of your branch (they touch nothing else, and the SHA-256 check for the tag="$(awk '{print $2}' "$proton_dir/version")"
+tag="${tag%-unstripped}"
+tag="${tag%-stripped}"
tag="${tag%-x86_64}"-wine_commit="$(curl -fsSL "…/contents/wine?ref=$tag" | sed …)"
-[[ -n $wine_commit ]] || { echo "Could not find the Wine commit of $tag on GitHub." >&2; exit 1; }
+contents="$(curl -fsSL "…/contents/wine?ref=$tag")" || contents=""
+wine_commit="$(printf '%s' "$contents" | sed …)"
+[[ -n $wine_commit ]] || {
+ echo "Could not read the Wine commit of $tag from ValveSoftware/Proton." >&2
+ echo "Either no released build has that tag (it comes from $proton_dir/version)," >&2
+ echo "or the request failed (network, or GitHub's hourly limit without a token)." >&2
+ exit 1
+}The second one is not cosmetic: without it I checked the four version formats in use on this machine — Happy to send it as a PR against your branch if you would rather review it that way. |
…rl fails Proton Experimental's version file can name a build "...-v71cae0-x86_64-unstripped"; taking only -x86_64 off left the suffix on, and ValveSoftware/Proton has no such tag (none of its tags contains "stripped" or "x86_64"), so the contents API answered 404. -unstripped and -stripped now come off first. curl -f inside the pipeline also ended the script under set -e before the note below it could print, leaving a bare "curl: (22) 404". The request is now allowed to fail, and the note names both causes: a tag that no release has, or a failed request (network, GitHub's unauthenticated limit). Reported and measured by Kassadd on PR trustno1-coder#3367 (16.3-17.5 fps from 13.0-15.9 with the tree on that machine). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks, @Kassadd — confirmed and applied directly on the branch as 86587de0, so no separate PR needed. Checked here: the (One detail: Thanks for the fps numbers too — useful to have a machine where |
Related to #2719 and #3141 (Proton: the submitting thread waits on the write watch); no single issue.
What it changes
This ports the Linux/Proton pieces of ErRusso/ViceTux that no open PR here covers yet. Nothing changes on Windows unless a switch is set.
scripts/build-wineserver-viewtree.shbuilds the Wine server that keeps a process's mapped views in a tree (Wine bug 60868, not fixed in Proton Experimental 11), for the installed Proton Experimental.server/wineserver.wineserver-view-tree.patch. It is fetched at a fixed commit and checked against its SHA-256, so the repository holds no patch file.ntdll.so, to pass as umu-run'sPROTONPATH. The installed Proton is not touched.docs/linux-proton.mdalready measured this server: 13.7-15.3 → 19.1-19.3 fps on an RTX 4090. ViceTux measured the write watch going from 25-90 ms a frame to 3-6 ms (11.1 → 15.8 fps) on an RTX 4060.scripts/fast-copy.shcopies the ~108 GB the title streams most (levels.rpf, the hotdata/ttdbfolders) to an SSD and links everything else, so the folder works as the dump.VICTORY_ABSENT_CACHE=1(watch.rs, off by default): uncommitted regions found byuncommitted_endare remembered instead of asked of the system each time.VirtualQuerya second under Wine, each one taking Wine's process-wide lock.writes_in_partly_committed_view_blocks_are_reportedfails with it on, as it should.docs/linux-proton.md: how to use all three.How it was tested
docs/linux-proton.md.cargo xwin test -p victory-gpu --lib watch::, run under Wine 11 on Linux):a_remembered_hole_is_found_from_any_of_its_blocksandmemory_given_anywhere_in_a_hole_forgets_the_whole_hole.mainunder Wine without this change:bits_and_holes_with_faults_that_take_no_lock,holes_are_known_until_the_runtime_tells,no_mapping_is_lost_between_askers,what_is_left_alone_is_no_known_hole. They expect Windows memory semantics.cargo xwin clippy --workspace --all-targetsreports no new warnings from this change.-D warningsalready fails onmain(unwind_copyinvictory-loader/src/crash.rs:804, unused imports invictory-shader).--all-featuresalready fails to compilevictory-gpuonmain(11 errors, the diagnostics build; see Diagnostics builds compile again #2744 and Diagnostics-only barrier stats: six needless borrows the all-features gate refuses #3086).bash -n.cargo xtask policy --staged: the 4 files pass.Checked for overlap
watch.rstoo, in other places.🤖 Generated with Claude Code