Laptop GPU, Series S under 24 GB, faster copy-back and texture hashing, XG layouts from AnyXboxX #4
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
performance
question
rendering
series-s
test-report
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/realblastex--flamingo!4
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/4/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?
@spy0eye-beep on GitHub · 2026-11-25 18:03 UTC · original
spy0eye-beep:lowspec→main· +7 −7 · 1 files · 23 commits · closed without mergingFive changes for lower-end PCs, each its own commit, on
main(7ca2674). Three of them change no output at all; one changes only the default profile; one corrects texture layouts.The commits
12b3f3a). The host device and the shader test host were made on the default adapter, which on a laptop with two GPUs is the integrated one. On an RTX 4060 Laptop + Intel UHD machine flamingo ran on the Intel UHD. Now the first hardware adapter inDXGI_GPU_PREFERENCE_HIGH_PERFORMANCEorder that creates a device is used (software adapters never), and logged.VICTORY_TEST_ADAPTER=nruns the tests on the n-th hardware adapter.193711b). Same runs, 10-27 GB/s instead of 2-4 GB/s on masks of scattered writes (word_search_finds_the_byte_runs,mask_runs_speed). Merge and per-run writes unchanged.d988dca). The same BLAKE3 hash (the_wide_hash_is_the_hash); 0.58 ms instead of 3.7 ms for 16 MB here. Adds blake3'srayonfeature.cf718bb). Without--console, a PC with less than 24 GB of physical memory runs asseries-s; 24 GB or more (or unknown) staysseries-x.--consoleis used as given. The choice is printed with its reason.52d79dc), ported from LooperSalty/AnyXboxX (third_party/victory, Looper_Salty'sxg:commits, GPL-3.0-or-later): tail mips in parent mode with their position, 64 KiB tilings by subresource. AnyXboxX found 84 texture descriptions that differed fromxg_xs.dll.xg_oracle.rscompares with the real DLL only when given its path. This tree's onlyxg.rschange (not naming the title) is kept.Considered and left out: freeing idle texture staging buffers (flamingo's pooled staging and late submissions make it unsafe without in-game testing), and the remap lock per 16 MB from JoshuuDev/victory-amd (its own runs found frame time unchanged by the finer locking).
Testing
cargo test --workspace --all-features, Windows 11, i7-13620H, 16 GB:mainas publishedVICTORY_TEST_ADAPTER=1The 6 failures on the RTX 4060 are
main's own (barycentric_tests×3,gs::tests::a_pair_is_a_vertex_shader_and_a_geometry_shader,rect::tests×2); the 12 on the Intel UHD are those plusintersect_tests×4 and twovalu_tests, as onmain.cargo build --release -p victory: OK. rustfmt: no new differences in the touched files.AI-assisted (Claude).
🤖 Generated with Claude Code
@rafaconvaitis on GitHub · 2026-11-25 18:26 UTC · original
In-title baseline on this PR's base commit
7ca2674, for the copy-back work. Hardware: RTX 4070 (616.64), Ryzen 9 5900X, 32 GB. Series S, D3D12, Relay 1, plain copies, async submit off. The only local source change is a test input hook.After starting a fresh game and verifying camera input in the first playable room, I left the camera fixed and ran
VICTORY_BACK_OWN_VIEW=altin one process. Each mode had three complete alternating 20 s intervals. I excluded the first second and log windows that cross a switch. Both native views were created successfully and the own-view write counters increased during the sampled intervals.This is a measurement of the base commit, before the changed-run scanner and parallel texture hash in this PR. Own-view reduced the measured copy-back cost by roughly 13 ms while end-to-end frame time moved only slightly. Host preparation still measured 61–71 ms/frame in this sample. The fixed camera in this room is a useful repeatable target for testing the PR's copy-back change in-game.
@realblastex on GitHub · 2026-11-25 20:08 UTC · original
Thank you! The laptop discrete-GPU choice, the threaded texture hashing and the Series S default under 24 GB are in
main(11ed9aa), with credit to the commits' author.The copy-back word search and the XG layouts are on hold for now. Some test runs with them showed large flat polygons and an untextured character, but later runs without them showed the same artifacts: they come and go between runs of the same build, so a single run per setup can't tell what causes them. I'll retest each of the two over several runs before deciding, and keep this PR open until then.
@spy0eye-beep on GitHub · 2026-11-25 21:05 UTC · original
Thanks for merging the three, and @rafaconvaitis for the baseline numbers and the fixed-camera room, which is a good repeatable target.
On the two on hold, in case it helps narrow the intermittent artifacts:
193711b) can't change what is written: it only changes how the runs of changed bytes are found, andword_search_finds_the_byte_runschecks it against the old byte-by-byte search (random masks of every length 0-40 plus 63/64/65/4095/4096/65536 bytes, five densities). The merge and the per-run writes are untouched. So artifacts that come and go with or without it should be from elsewhere.52d79dc) do change what the title is told about texture layouts (mip tails, 64 KiB tilings), so that one could affect textures, and testing it over several runs is the right call. AnyXboxX reported its 84 differences againstxg_xs.dlland, with the library serving layouts, no difference in game, but that was their tree, not this one.Happy to split either into its own PR if that makes testing easier.
@realblastex on GitHub · 2026-11-25 21:24 UTC · original
Thanks @spy0eye-beep for the explanation, and @rafaconvaitis for the baseline numbers and the fixed-camera room.
You're right about the copy-back word search: since it only changes how the changed runs are found and the test checks it against the byte-by-byte search, it can't cause the artifacts. It's back in and goes out with the next push. The XG layouts stay on hold until I've compared several runs with and without them.
Pull request closed