feat: victory: fps ports from rorodev6 and the forks, behind VICTORY_* switches (-Fast launcher set) #234
No reviewers
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX!234
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/234/head"
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?
@LooperSalty on GitHub · 2026-11-25 20:11 UTC · original
LooperSalty:feat/fps-rorodev→main· +2047 −48 · 15 files · 14 commits · closed without mergingSummary
Ports of the parts of rorodev6's and the fork's fps work that save time without changing the picture, plus the fork commits this branch builds on, behind
VICTORY_*switches. Everything new is off by default; the launcher's-Fastswitch turns on the measured-useful set. Nothing here has been measured in game yet except where stated.Commits
VICTORY_TEXTURE_BATCH=1: textures read in place together, several threadsVICTORY_COPY_COMPARE=1: refresh only changed 4 KiB piecesVICTORY_INDIRECT_GATHER=1: scattered indirect records clamped once per listVICTORY_STAGING_DOUBLE=1(off; see below) and the in-flight fix: a staging buffer dropped while a submission may read it is kept until that submission finishes, never pooled at once0840776fVICTORY_STAGING_BLOCKS=1: staging cut from 64 MiB upload blocks (ranges.rs); a buffer dropped mid-flight hands its range back only when its submissions finisha4f807faVICTORY_HEAP_PASS_DIRTY=1: the heap-buffer pass re-looks only at slots marked since its last pass (full sweep every 256 passes)3a3bb8ef28e91ccdtools/lancer_victory.ps1 -Fast: the measured set, neverVICTORY_RELAY0770a070The Trexies and ShakiraRED commits are squashes or re-applications; their author identities in the source repositories are placeholders or contributor-level, so they are recorded as found.
Measurements (honest labels)
VICTORY_RELAY=2etc.): 4.9 fps, 202 ms/frame; passes 61 -> 45 ms withVICTORY_CARD_REHASH_RUNS=1.VICTORY_STAGING_BLOCKSand the in-flight fix address that path. This is an inference from counters, not yet confirmed by a run.VICTORY_STAGING_DOUBLE=1(fresh buffer instead of settling): regressed in Series X, 2.9 fps against about 5 (the fresh buffers are refreshed in full at first submission: 240 MB a frame). Kept off, not in-Fast. The in-flight safety fix in the same commit stays.VICTORY_STAGING_BLOCKS,VICTORY_HEAP_PASS_DIRTY, the chunked merge, and the default-on questions. All default off. Measure with-Fastand without, then decide defaults.Test instructions (Series X, the maintainer's rule)
All game runs for this PR use the default console, Series X. Do not set
VICTORY_DISPLAY_MODEand do not pass--console series-s.Compare the frame line (
fps,ms/frame,passes, and the "staging buffers" and "heap buffers" lines). Check a cutscene screenshot for any difference from the baseline; a picture change is a bug in the port.Left out (and why)
VICTORY_TITLE_CACHED(rorodev,vmem.rs, from 78e95de): about 230 lines in the HLE memory model; needs its own review.VICTORY_TEXTURE_HEAPS(rorodev, the texture half of 0781f61,resource.rs): about 250 lines placing textures in heaps; separate change.VICTORY_GROUPED_MESH_CLAMP(rorodev, the draw half of 31634e4): overlapsVICTORY_INDIRECT_GATHER, already ported from c20f10a7.VICTORY_DEPTH_BOUNDS(rorodev,pipeline/host.rs, inside 4436f8f with 180 unrelated lines): not separable cleanly.STAGING_POOLvariant: covered byVICTORY_STAGING_BLOCKS(rorodev's default is the block path).VICTORY_COPY_PLAIN, low guards, ambient.Known test issue
watch::tests::a_check_during_a_held_kernel_write_leaves_its_blocks_openis flaky (it also fails intermittently on the base commit; it passes alone). Not touched here.Verification
cargo build --locked --profile diag -p victory --features diagnostics: ok, no warnings.cargo test -p victory-gpu --features diagnostics --lib: 174 passed (the flaky test passed in this run).cargo xtask policy: 185 files ok.pytest(full): 1031 passed, 300 skipped.ruff check --select W605,F,E9 PrototypeScarlett tests tools: clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01LwHrL4bPjrVJiDKC8BDYfz
@chatgpt-codex-connector[bot] on GitHub · 2026-11-25 20:12 UTC · original · edited 2026-11-25 20:15 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
0770a07ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@LooperSalty on GitHub · 2026-11-25 20:39 UTC · original
Superseded: our VIctory base moves to Neptune (VIctory Edit.) 2026-11-25c in a new PR, which measured ~12.5 fps median in the world in Series X on the maintainer's RTX 4070 SUPER (this branch: ~3.8 fps, still rising, in a short run). Closed at the maintainer's request.
@ -4971,0 +5192,4 @@self.list.ResourceBarrier(&[transition(&set.scratch,D3D12_RESOURCE_STATE_INDIRECT_ARGUMENT,D3D12_RESOURCE_STATE_COMMON,@chatgpt-codex-connector[bot] on GitHub · 2026-11-25 20:15 UTC · original
With
VICTORY_INDIRECT_GATHER=1(including the launcher's-Fastset),State::indirectstill callscrate::indirect::done(list, &bounded)after each gathered draw, explicitly transitioning its scratch buffer fromINDIRECT_ARGUMENTtoCOMMON. This additional transition at list close therefore declares an incorrect before-state after the final draw. The gathered path needs separate state handling: either retainINDIRECT_ARGUMENTuntil this closing barrier or avoid emitting the redundant barrier. Otherwise the new path records invalid D3D12 resource transitions.Useful? React with 👍 / 👎.
@ -2467,0 +2550,4 @@let mid = ((from + to) / 2) & !(PAGE - 1);if mid > from && mid < to {let left = self.update_free(from, mid);return left + self.update_free(mid, to);@chatgpt-codex-connector[bot] on GitHub · 2026-11-25 20:15 UTC · original
For committed memory that has neither write-watch nor view guards, every recursive
watch::writescall returnsNone. This now splits the entire range down to 64 KiB pieces, but those leaves never setNOT_WATCHED, so the complete failed-query tree is repeated on every refresh. For example, a 64 MiB unwatchable buffer incurs 2,047 watch/guard attempts per refresh instead of the previous one-time failure followed by a direct copy. Cache unwatchable pieces or distinguish wholly unwatchable allocations from ranges crossing reservation boundaries so this default-on change does not turn ordinary buffer refreshes into thousands of kernel queries.Useful? React with 👍 / 👎.
@ -0,0 +37,4 @@if std::env::var_os("VICTORY_UPSCALE").is_some_and(|v| v == "title") {return original;}ORIGINAL.store(original, Relaxed);@chatgpt-codex-connector[bot] on GitHub · 2026-11-25 20:15 UTC · original
The new upscaler interception is enabled by default, parses a dispatch description using fixed byte offsets, and substitutes a new GPU pass, but the commit adds no test exercising that behavior. The existing internal-HLSL compilation test also omits
UPSCALE; the launcher tests merely check the DLL filename. Add synthetic dispatch-description tests covering interception and fallback, plus compilation or WARP coverage of the replacement pass. This is required by the repository's explicit rule that new behavior include a test that fails without it.AGENTS.md reference: AGENTS.md:L54-L54
Useful? React with 👍 / 👎.
@ -49,1 +49,4 @@| [rorodev6/victory](https://github.com/rorodev6/victory) (rorodev6) | GPL-3.0 ou ultérieure | | Compteur de fps en haut à gauche (`fps_overlay.rs`, commit `4ddc0c1`), porté avec une taille réglable (`VICTORY_FPS_OVERLAY_SIZE`) || [shadowdog00/vi-pc-combo](https://github.com/shadowdog00/vi-pc-combo) (shadowdog00) | GPL-3.0 ou ultérieure | | Stand-in de l'upscaler du titre en Series S (`upscale.rs`, `af62a99`) ; lecture groupée des textures sur place sur plusieurs threads (`6f07e7b`, portage à la main, `VICTORY_TEXTURE_BATCH=1`) ; staging découpé dans des blocs de 64 Mio (`ranges.rs`, `0781f61`, `VICTORY_STAGING_BLOCKS=1`, repris via [rorodev6/victory](https://github.com/rorodev6/victory)) || [Trexies/victory-fork](https://github.com/Trexies/victory-fork) (branche VIwork), repris via [WillyboPeep/victory-all-forks](https://github.com/WillyboPeep/victory-all-forks) (`all-forks`) | GPL-3.0 ou ultérieure (licence du fork, à confirmer par son auteur) | | Copies de rafraîchissement en parallèle sur les machines multicœurs (`9ce6d1c5`, source `8422f48`, auteur spacede) ; `VICTORY_COPY_COMPARE=1` (`ae114b90`, source `7ac7891`, auteur inscrit victory-local, faute d'identité réelle) ; découpe d'une plage non surveillée (`ce0216c4`, source `807a0d0`, auteur inscrit anonymous) || [reddxd-byte/ShakiraRED-dt](https://github.com/reddxd-byte/ShakiraRED-dt) (commit `c2271e5`, squash de la branche VIwork de Trexies) | GPL-3.0 ou ultérieure | | Passe du heap à lignes sales (`heap_pass.rs`, `VICTORY_HEAP_PASS_DIRTY=1`, désactivée par défaut) et comparaison de fusion de copies par blocs de 32 octets (`shadow.rs`, `merge_piece`, sans changement de rendu : testée contre la boucle d'octets) |@chatgpt-codex-connector[bot] on GitHub · 2026-11-25 20:15 UTC · original
These rows document code imported from other repositories, but reviewed commit
5dfdf53contains neither the requiredSource:trailer nor anyCo-authored-by:trailer crediting the source authors. Its summary table identifies repositories and commits, but does not preserve the author attribution required byAGENTS.mdrule 10. Retain the required source and author trailers when consolidating these ports; updatingTHIRD_PARTY.mdsatisfies only the separate sources-table requirement.AGENTS.md reference: AGENTS.md:L59-L59
Useful? React with 👍 / 👎.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-25 20:15 UTC · original · reviewed
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
0770a070d7ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Pull request closed