texture: VICTORY_PARTIAL_DELTA=1 and VICTORY_REFRESH_ONCE=1 (Scarlett deltas, off by default) #306
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!306
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-306"
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?
@zocram4cc on GitHub · 2026-11-26 15:19 UTC · original
zocram4cc:feat/texture-delta-scarlett→main· +596 −3 · 4 files · 2 commits · openWhat
Two texture-upload deltas from Scarlett's tree, both off by default:
VICTORY_PARTIAL_DELTA=1: a host copy uploaded before gets only the subresources (level x array slice) whose title bytes changed since its last submitted upload. Content-addressed per host copy and subresource; 2D, thin, single-sample layouts only.VICTORY_REFRESH_ONCE=1: a copy's range that a flush brought up to date is not asked again in that submission until a write of ours lands there.=verify(diagnostics builds) checks each skip without changing the result.VICTORY_BAKE_DELTAis not in this PR. It depends on the texture write-watch asking (ASK_TEXTURES, our fc25c61) and its state, which is not onv7900/main; it will follow once that is upstream.Credit: Op-lite/victory-scarlett 7c8f019 (scarlett-local, GPL-3.0). Ported with the original author kept (
094611a,8477461are cherry-picks of 096e9f0 and 1b652c4).Why
When more of a texture picked by index maps, its staging buffer is made again and uploaded whole, even when most of it did not change. The refresh-once skip avoids re-asking ranges a flush already brought up to date.
Measured
Linux, Proton, Series S, release build, single 300 s runs (world time) each. Arms differ only in the switches named:
The gain appears only in combination with ports 6 and 7 (PORT_GUARD, PORT_JOURNAL, both on
v7900/main); alone, each switch is slower than base. These are single runs, so treat the ~3.5 ms gap as indicative, not established.Linux/Proton only measured. Windows untested.
Tests
texture::delta::tests(four, PARTIAL_DELTA state machine) andhost::refresh_once_tests(two, join and trim rules). Red against stubs, green after, under Proton with--test-threads 1in the original tree. The upload hooks are compile-checked only.Run under Proton on this head (
8477461), one test exe,--test-threads 1:texture::delta::testsandhost::refresh_once_tests(6) withVICTORY_PARTIAL_DELTA=1 VICTORY_REFRESH_ONCE=1: 6 pass.watch::(48 tests) with the two switches on: 45 pass, 3 fail; unset: 45 pass, 3 fail. The same 3 fail in both, and they are the Wine-only failures that also fail on upstream:holes_are_known_until_the_runtime_tells,no_mapping_is_lost_between_askers,what_is_left_alone_is_no_known_hole.Build
cargo xwin build --profile release -p victory --target x86_64-pc-windows-msvc: passes on this branch.AI-assisted (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.