Preliminary live ray tracing, Series S overlay/upscaler, and 8 GB VRAM stability #814
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!814
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-814"
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?
@staronthehorizon on GitHub · 2026-11-25 08:34 UTC · original
staronthehorizon:rt-preliminary→main· +5901 −871 · 36 files · 4 commits · openSummary
Preliminary branch bringing sustained live ray-traced lighting (
VICTORY_BVH_BUILDER=1,VICTORY_BVH_QUARANTINE=0) on--console series-sto 8 GB VRAM / 16 GB RAM hosts without crashes, OOMs, or device removals.Structured as 4 independently compiling commits on top of
main(happy to split any of these into standalone PRs if preferred):translate --filter(9f19a7d)crates/victory-shader), addsSLOT_VIEW_ADDRESSES,USER_DISPATCH_THREADS, and widerMEMORY_FAULTS/ dirty-page bitmask constants.--filtertovictory translateand updatesdocs/fork-ray-tracing.md.7c8e778)xmem.rswith section teardown notification (title_memory_section_gone) ininplace.rs.watch::is_write_watched(GetWriteWatch(0, ...)) query with unit tests.ff09824)find_writable/find_existing_writable) so root UAVs andSLOT_MEMORYbind the same D3D12 buffer, avoiding WDDM shared-memory aliasing/OOM.1024 MiBcard-buffer budget default and unblocks local VRAM texture uploads on 8 GB GPUs when shared memory is occupied bySLOT_MEMORYbuffers.VICTORY_TEXTURE_DROP_MIPShelpers (drop_levels,host_subresource,shift_levels).SLOT_MEMORYscaling, Series S overlay/upscaler, and host GPU sync (ece4a19)crates/victory-gpu/src/over*) and FidelityFX upscale stretch HLE (crates/victory-hle/src/modules/ffx.rs).memory.rs, immediatetake_dirty()onrelay_land, read/write address separation, andSLOT_VIEW_ADDRESSESdescriptor sync.Testing
cargo check --workspace; tip passescargo check -p victory --features diagnostics.victory-shader --lib: 231 passedvictory-gpu --lib: 165 passedvictory-hle --lib: 101 passed--console series-s):VICTORY_BVH_BUILDER=1andVICTORY_BVH_QUARANTINE=0: 0 crashes, 0 OOMs, 0 device removals, 0 dropped shaders, 0 null buffer views.VICTORY_BVH_BUILDER=1VICTORY_BVH_QUARANTINE=0VICTORY_CARD_FETCH_INFLIGHT=1VICTORY_TEXTURE_DROP_MIPS=1VICTORY_TEXTURE_ROOM_PERCENT=82Known Limitations / Follow-ups
SLOT_MEMORYshaders still fault on low addresses (0x10000range) and hit the1536 MiBcap ~60s post-BVH (capped cleanly without crashing).VICTORY_TEXTURE_DROP_MIPS=1should not be combined withVICTORY_LEVELS_ON_DEMAND=1yet (held_levelsintexture.rsdoes not yet offset byself.drop).Co-Authored-By: Gemini 4 Neon [email protected]
@Filip722 on GitHub · 2026-11-25 09:01 UTC · original · edited 2026-11-25 09:20 UTC
I reproduced the dropped-mip / levels-on-demand interaction from the limitations section on an RTX 5060 Laptop GPU (8 GB, NVIDIA 615.78.08) on Bazzite 44 with Proton Experimental 11.0-20261112 and vkd3d-proton 3.1.0. The Windows release tests used Rust 1.98.1 and the same synthetic fixture on both arms.
On
ece4a19, a partially backed 1024×1024 BC7 texture with one mip dropped fell back to a committed heap. The tiling query received three title mips for a two-mip host texture. The patch derives the count from the host resource and shifts the staging mask into host mip indices. With both switches enabled, the fixture kept a reserved texture, gave both retained mips tiles, and verified that host mip zero was the first visible level.Cherry-pickable fix and regression. The staged asset-policy check passed for all three changed files. The full check hits the parent branch's unchanged 552,640-byte
emit/lower.rs(512 KiB limit). The fixture used our own texture bytes.OpenAI Codex (GPT-6.2-Sol) wrote the fix and fixture, ran the comparison, and drafted this update.
A separate test-only commit covers Wine's single committed section and preserves the native assertions for two lazily materialized chunks. The original test expected two runs across the boundary and observed one on GE-Proton 11-14. The corrected test checks section layout, maps the boundary page, writes to its backing, and reads the same bytes through the view. It passed on GE-Proton 11-14. The native Windows arm still needs a run. Codex prepared and ran this follow-up.
@Danigamer05 on GitHub · 2026-11-25 11:05 UTC · original
Tested on Turing with 8 GB: RTX 2080 SUPER 8 GB (32-lane waves, driver 621.01), Ryzen 7 3700X, 32 GB, Windows 11. Build:
ece4a19plus #683's commit (loop limit for compute programs, needed for hair strands atVICTORY_SHADER_LOOP_LIMIT=32), diagnostics build. Flags as recommended:VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=0 VICTORY_CARD_FETCH_INFLIGHT=1 VICTORY_TEXTURE_DROP_MIPS=1 VICTORY_TEXTURE_ROOM_PERCENT=82, plusVICTORY_SHADER_LOOP_LIMIT=32 VICTORY_SHADER_LOOP_LIMIT_CS=128. Prison window shot and cell, captured every 8th frame.refused_budgetpages*--console series-sVICTORY_MEMORY_MBdefault (1536)VICTORY_MEMORY_MB=3072* Summed over the "shaders touched pages that had no copy" warnings, which stop after 50 lines, so these are lower bounds.
Notes:
all of its programs have host pipelines pipelines=53on this card in both modes.VICTORY_MEMORY_MBfixed most of them. The windows areshared_buffers in system memory, so 1536 MiB looks low for Series X mode on a 32 GB host. A larger default, or one scaled to system memory, might be worth it.Numbers and text only; no game data or screenshots attached. AI-assisted (Claude Code).
@sagouindupm on GitHub · 2026-11-25 11:33 UTC · original
Hi @staronthehorizon — just a quick coordination note on the Series S portion (
crates/victory-gpu/src/over.rsandover/readback.rs): that overlaps directly with our open PR #188 (https://github.com/fxceless/victory-fork/pull/188), which still merges cleanly ontomain(f85101b) with readback unit tests and independent confirmations on RTX 4060 8 GB (Proton) and RTX 4070 SUPER (Windows).Happy to coordinate so Series S overlay/stretch changes aren't duplicated or conflicted while keeping PRs focused on single concerns per maintainer review feedback.
AI-assisted: diff comparison and coordination note prepared with AI assistance.
@Danigamer05 on GitHub · 2026-11-25 12:33 UTC · original
Follow-up from the same RTX 2080 SUPER 8 GB (same build,
ece4a19+ #683's commit; Series X unless noted,VICTORY_MEMORY_MB=3072):VICTORY_MEMORY_MB=6144, where no page was refused). WithVICTORY_RELAY=0it is gone in all window frames of the run. Cost here: 0.8 → 0.6 fps. This looks like the missing-skin/relay report in #89.9376fd6+ #683, no BVH builder), and neitherVICTORY_RELAY=0norVICTORY_BAKE_TEXTURES_MS=10000changes it.VICTORY_DISPLAY_MODE=2560x1440does not change the Series X render targets (3,289 MB against 3,313 MB with the default 4K mode).--console series-s,VICTORY_RELAY=0, noDROP_MIPS: 25 minutes, no device removed, card 5,514 / 6,778 MB with 2,280 MB of textures, 0.78 fps. The picture is much sharper than with the stretch upscale (yard, tower and people crisp, hair strands whole instead of grainy). The cell interior looks darker than in my first Series S run (relay on, stretch upscale); I have not yet separated whether that comes from the relay or from the upscaler change.Numbers and text only. 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.