feat: VIctory in the repository as our own code, with 57 Proton and AMD commits (measured on Linux at ~3.7 fps) #199
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/199"
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?
Imported from LooperSalty/AnyXboxX. Originally posted by Exorion1er on 2026-11-25T05:28:47Z.
Summary
third_party/victorybecomes a copy of VIctory inside this repository, and from now on it is our code: nothing is synced or pinned, and it still builds if every repository it came from is taken down. Commitf7b60f8imports the tree ofLooperSalty/victoryat the pinned commit80d58f8(anyxboxx/fork-7b0-lot9-murs), unchanged (same Git tree). 57 commits for Proton and AMD cards follow. The final tree ofthird_party/victoryis identical to890a83a, the commit built and measured on Linux.AGENTS.md, new section inCONTRIBUTING.md): a change taken from another repository is committed by us (cherry-pick with-Xsubtree=third_party/<project>, or a port by hand), and its message ends withSource: <repository> <PR or commit>andCo-authored-by: Name <email>. The 15 commits in this PR written by someone else (12 by myokex, one each by fxceless, oddiums and Joshua Odom) follow that rule. No submodules or pinned forks for new sources.THIRD_PARTY.md: the four VIctory rows become one table row plus a "Sources dethird_party/victory" table, one row per source repository (what was in the initial copy, what came after). Theanyxboxx/stableandanyxboxx/essairows are removed: none of their commits is in the copy (anyxboxx/stableis not an ancestor of80d58f8, and none of its 38 commits matches by patch-id).crates/victory-formats/src/bcpack-tables.bin(about 78 KiB). The maintainer admitted it as an exception on 2026-11-25; the register row ofTHIRD_PARTY.mdsays so (a489301).Changes since the reviewed head
6e5d7d7The branch was rebuilt: rebased on
main(198cf0b, with #204 and #206), commit messages in English, the 15 commits above re-authored withSource:andCo-authored-by:, plus these answers to the review:-BatchCardRehashrestored (8c93075):b06ff90re-applied as is, option and test. Againstmain,tools/lancer_victory.ps1now differs only by the messages about the copy.README.mdline 10 and the intro sentence (9 languages), the "Updating an existing copy" paragraph of both guides,docs/research/victory-xcl-fivestar.md(en, fr), and thetools/sync_voisins.pycomments. The guides and READMEs no longer speak of a pinned branch or of upstream (01c9999).c8d7990): a new job,politique VIctory, in.github/workflows/tests.ymlrunscargo xtask policyinthird_party/victory(locally: "asset policy: 181 files ok").a489301.AGENTS.md: rule 8 exemptsthird_party/from the 400-line rule and from ruff; the policy command is documented next to the lint command.Updating an existing clone
A clone that still has the submodule must remove it before pulling, or the checkout stops (tried on a clone):
git submodule deinit -f third_party/victory, deletethird_party/victoryand.git/modules/third_party/victory, thengit pull.target/goes with it, so the first build starts from scratch. The shader cache key changes, so a-Precompilecache is rebuilt.Large diff: the import adds the whole VIctory source (about 4.5 MB). To review only the change against the previous pin, read the 63 commits after
f7b60f8, orgit diff f7b60f8 HEAD -- third_party/victory.What the 57 commits bring (grouped; each commit names its source and author)
GetWriteWatch,VirtualQueryandVirtualProtectcalls per frame; guards held open over the runtime's kernel writes, and no deadlock under the guards' lock; raw DirectStorage andfreadreads copied in from a buffer (Joshua Odom, JoshuuDev/victory-amd).v_cvt_f32_f64andv_add_f64sums (fork #9, MartinIndra02),v_permlane16/x16_b32(fork #134), 9-bit primitive indices (VIctory #1718, tjthebigbearcat-hub),v_interp_p2_f16(VIctory #1696, Calvix2k), interpolation as declared by PSV0 (fork #150, wildheathen), NaN guard (PastiiJay), shader clean-up passes (fxceless,1684989).86a5ed6); placed UAVs (fork #114, Kaivyyy); late waits (fork #191 gdawid9407, #206 AscilCH, #141 adritoyalser); a budget for view copies; and twelve commits by myokex (myokex/victory-amd): placed texture views by mip, lost views put back in the queue, dispatches of more than 65,535 groups, 64 KiB CBVs, texture queue, DirectStorage page arrays, pipeline waits while loading, early pipeline list.VICTORY_NULL_MAGENTA, mesh shader pipeline test (fork #14, oddiums).Switches: most new behaviours are on by default (
0turns them off:VICTORY_SHADER_OPT,VICTORY_PS_HALVESandVICTORY_L6_HEAP_CLAMPonly on the hosts they apply to,VICTORY_L6_*,VICTORY_L7_*,VICTORY_L9_DSTORAGE_GUARDS,VICTORY_L9_GUARD_TITLE_VIEWS,VICTORY_TEXTURE_SWEEP,VICTORY_TEXTURE_GATE_S=60,VICTORY_PIPELINE_GATE_S=120). Off by default:VICTORY_L9_ALIAS_UNCLEAN,VICTORY_HEAP_RECHECK(face geometry lost and black skin in Linux runs 28 and 30, observed),VICTORY_L7_SKIP/ROLES/UNLIT,VICTORY_NULL_MAGENTA,VICTORY_RT_RESOLVE. Full table in the guide.Measurements (Linux only)
Fedora 44, RX 9070 XT 16 GB, RADV through vkd3d-proton, GE-Proton11-12 with a community "view-tree" wineserver patch;
victory.exebuilt from890a83a(samethird_party/victorytree as this PR); VIctory log of run 31 (25 Nov, 06:09 to 06:32, about 23 min); shader cache warmed withvictory translate --cache(25,985 containers, 25,699 translated, 286 refused, 125 s).ERRORlines in the log. Measured.VICTORY_LATE_WAIT=0,VICTORY_WIDE_BACK=0(with late waits the device is lost on RADV, fork issue #184),VICTORY_SHADER_LOOP_LIMIT=256,VICTORY_PIPELINE_WAIT_MS=50,VICTORY_TEXTURE_BUDGET_MB=8192,VICTORY_TEXTURE_NO_WAIT=1,VICTORY_CARD_BUFFERS_MIN_MB=1,VICTORY_CARD_BUFFERS_MB=1024,VKD3D_CONFIG=descriptor_heap,VICTORY_SKIP_PIPELINES(9 hashes),VICTORY_L7_SKIP=rt,gi,reflectionswith a role table built locally from my own copy (outside the repository).Limits
VICTORY_LATE_WAIT=3andVICTORY_WIDE_BACK=1, paths I have not run. A run on your RTX 4070 Super before merging would help; if something regresses, the A/B switches above (0turns off) narrow it down.6e5d7d7changed no Rust source, so the Linux measurements still apply; the launcher and docs changes were not run in game.Tests
python -m ruff check --select W605,F,E9 PrototypeScarlett tests tools: All checks passed.python -m pytest -q(Linux, Python 3.12.13): 578 passed, 232 skipped, 1 failed:tests/test_jour_j.py::test_missing_executable_is_reported, which fails the same way onmainunder Linux; unrelated.cargo xtask policyinthird_party/victory: "asset policy: 181 files ok".third_party/victoryis identical to890a83a(same tree hash), before and after the rebuild.890a83a:cargo check --profile diag -p victory --features diagnostics(Windows target) on each of the 57 commits, 0 errors; Windows diag build without warnings;cargo test -p victory-shader --lib(Linux) 176 passed, 2 ignored;victory-gputests (Windows target, under GE-Proton11-12, RADV) 158 passed, 2 ignored. The Windows GPU tests ofvictory-shaderdo not compile, already the case at80d58f8.Credits
In
THIRD_PARTY.md, per source repository: Joshua Odom (JoshuuDev), myokex, fxceless, oddiums (commits taken, withCo-authored-by); BitWuehler, MartinIndra02, triippywhale, Spexivus, joroyt, adritoyalser, alexdeliu, gdawid9407, AscilCH, Kaivyyy, sillynocodecat, wildheathen (fork pull requests, ported); Impre-visible, tjthebigbearcat-hub, Calvix2k, Marvisak (VIctory); PastiiJay (KLBF, klbf-lab); Exorion (the rest).AI assistance: the VIctory branch assembled and copied into the repository, the porting commits, this PR and its translations were written with Claude Code (Claude Opus 5.5); the in-game runs and observations are mine.
🤖 Generated with Claude Code
Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-25T13:49:36Z.
Revue de la tête
6e5d7d7(lue statiquement, pas encore lancée) :-BatchCardRehashdisparaît. La PR retire cette option detools/lancer_victory.ps1et son test danstests/test_lanceur_victory.py. Elle vient deb06ff90, déjà dans ta base6802e44, et la copie de VIctory lit toujoursVICTORY_CARD_REHASH_RUNS(crates/victory-gpu/src/host.rs). Ça ressemble à une résolution de conflit : peux-tu remettre l'option et le test ?README.md:10(« submodulethird_party/victory»,80d58f8),docs/running-gta6.md:133(paragraphe « Updating an existing copy », qui contredit la ligne 13) et son jumeau fr,docs/research/victory-xcl-fivestar.md:31(+ fr), commentaires detools/sync_voisins.py:1et:56(« épinglé »).third_party/victory/.github/workflows/ci.ymlet.githooks/pre-commit, qui ne tournent pas dans ce dépôt, donccargo xtask policyn'est plus lancé nulle part. Soit un job dans.github/workflows/tests.yml, soit retirer ces fichiers inertes.bcpack-tables.bin: l'exception est « À décider » dansTHIRD_PARTY.md; sans décision du mainteneur, la copie enfreint la règle 1. Je tranche ça de mon côté.AGENTS.md: ajouter quethird_party/(VIctory, ~123 000 lignes) est exempté de la règle des 400 lignes et de ruff, sinon les audits le signaleront à tort.Côté
main, #204 (tri du dépôt) ne touche pas aux mêmes lignes : fusion simulée sans conflit.Imported from LooperSalty/AnyXboxX. Originally posted by Exorion1er on 2026-11-25T14:04:46Z.
Thanks for the review. The branch is rebuilt and force-pushed (new head
7f426eb, onmain6473db9with #204):-BatchCardRehash: restored inf3c8a8e(b06ff90re-applied as is, option and test). It was my mistake: a two-dot diff againstmainwhile carrying the guides. Againstmain,tools/lancer_victory.ps1now differs only by the messages about the copy.README.mdline 10 and the intro sentence (9 languages), the "Updating an existing copy" paragraph (en, fr),victory-xcl-fivestar(en, fr), and thesync_voisins.pycomments.politique VIctoryintests.yml, which runscargo xtask policyinthird_party/victory(locally: 181 files ok).AGENTS.md: rule 8 exemptsthird_party/, and the policy command is documented.Two more changes, described in the updated PR body:
third_party/victoryis now treated as our own code with no upstream. Code taken from elsewhere is committed by us withSource:andCo-authored-by:lines (new rule 10 inAGENTS.md), andTHIRD_PARTY.mdlists the sources per repository.Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-25T14:16:19Z.
Décision du mainteneur :
bcpack-tables.binest admise comme exception au registre deTHIRD_PARTY.md(règle 1 d'AGENTS.md), le 2026-11-25.@Exorion1er, peux-tu remplacer dans la ligne du registre « À décider : proposée par la PR qui copie VIctory dans le dépôt » par « Admise par décision du mainteneur le 2026-11-25 (#199) ; admise dans VIctory par décision de son propriétaire le 2026-11-23 » ? Le reste de la ligne ne change pas : la licence du dépôt ne couvre pas ces données, et aucune autre donnée propriétaire n'entre avec cette décision.
Imported from LooperSalty/AnyXboxX. Originally posted by Exorion1er on 2026-11-25T14:19:00Z.
Done in
a489301: the register row now reads « Admise par décision du mainteneur le 2026-11-25 (#199) ; admise dans VIctory par décision de son propriétaire le 2026-11-23 », rest of the row unchanged.