GTA VI: first approach with the title memory mirror (draft, for reference) #1970
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1970
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1970"
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?
@antocorvo3000 on GitHub · 2026-11-25 01:56 UTC · original
antocorvo3000:gta6-first-approach→main· +10602 −840 · 38 files · 89 commits · draftOur first approach to Grand Theft Auto VI 1.0.2.1 (based on main of 24/11 morning, before many of your recent changes), published for reference: 87 commits of ours. Several of its fixes are now covered differently on main, but some are not, for example:
image_sample_d_cland cube gradients from face space, 64-bit image atomics (R32G32 views, SM 6.6), spilled compute roots, computed title reads and indexed root buffers, structured buffers of unknown stride, gather4 at an explicit level,s_getpc_b64, masked static buffer addresses in mesh shaders, backward lane permutes.VICTORY_D3D12_AGILITY).VICTORY_AUTO_A, in-memory title patches.The work that reaches the lit world on current main is #1965 (and #1962 for the black albedo). A budget-based alternative for placed-texture heap slots, superseded by #1962, is on branch
gta6-placed-texture-budgetof the fork.8867c99 writes each run of GPU-changed dwords by itself; through the kernel that is one WriteProcessMemory per run, ~10-80 us each, and the world's ~100,000 runs a frame took 1.7 to 5 s ("copying back" in vi55/vi56/vd37). The same runs are now stored directly where the piece is committed read-write (one VirtualQuery answer kept for the pieces after it: a query walks the whole region, ~80 us for 64 MB); elsewhere (read-only or otherwise protected) the kernel as before. The bytes written are the same: runs are not merged, title bytes between them are never written. The dword walk skips equal stretches 32 bytes at a time. VICTORY_COPY_BACK_KERNEL=1 writes every run through the kernel again (bisection). copy_back_cost (64 MB, release): 1,024 pieces x 128 dwords 9.86 s -> 14.6 ms; 256 x 1,024 17.0 s -> 12.0 ms; nothing changed 4.8 ms either way; identical title bytes in every case. Tests: the fast walk matches the old one; both write modes give the same bytes (read-write and read-only memory); a title thread's writes to the other dwords survive concurrent copy-backs.@Marvisak on GitHub · 2026-11-25 03:15 UTC · original
Automated triage for the maintainers.
This pull request conflicts with
mainin 26 files, among themcrates/victory-gpu/src/descriptor/host.rs,crates/victory-gpu/src/shadow.rs,crates/victory-shader/src/emit/lower.rsandapps/victory/src/run.rs. It will be reviewed once it is rebased onto currentmain.Generated by Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.