Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/980"
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 fxceless/victory-fork. Originally posted by gangg111 on 2026-11-25T14:36:37Z.
What
Pull request #772 by @sirrus98 (title memory in place, hot memory kept in VRAM) merged on top of #905 (#814 live ray tracing on current
main). With ray tracing on, the processor-side copy of title memory was most of the frame; withVICTORY_INPLACE=4it drops by about a third.This branch contains #905's merge commit, so it should go in after #905 (or instead of both). All credit for the in-place and resident work is @sirrus98's, for the ray tracing @staronthehorizon's; this resolves the merge and measures it with ray tracing.
How the conflicts were resolved
shadow.rsloose(): #814's version (writable windows, read-only windows in place) is kept. WithVICTORY_INPLACE>=3a window goes to its arena run first, as in #772, and writable asks take it too (the card writes the title's own bytes). Hot windows become residents (hot_window).retarget_tablesruns before both tables are read.memory.rs(SLOT_MEMORYdirectory): copies areOption, with #772'sretargetto residents; renumbering also moves #814's dirty-page records to the new number. Directory offsets useentry_offset(the bias of memory in place), including the pages a new copy fills in.inplace.rsplace_for: the arena path (level 3 and up) comes before #814'slate()guard, which stays for the older levels.placekeeps #814'swritableargument; #772's callers passtrue.xmem.rs: #814's lazySEC_COMMITchunks are kept. They are already committed sections, soVICTORY_INPLACE_POOLis not needed here. The section-gone hooks of both sides run (arena::title_memory_section_gonecalls the in-place census one).host.rs: flights carry both #814'smemory_dirtyand #772'sin_place; the early-signal landing passes #814's newrelay_card_backarguments.pipeline.rs/draw.rs:threadsand the store widths both kept; typed-store write-back by width plusmark_uav_dirty.warp_committed_section_places_read_only_and_writable_and_promotesopens a section by its handle, which #772 refuses on purpose (commit kept until restart on NVIDIA).VICTORY_ALLOW_SECTION_HEAPS=1still allows it.Testing
Hardware: RTX 3080 10 GB, driver 621.01, no Resizable BAR, i9-12900K, 32 GB RAM, Windows 11.
cargo build --release: clean (2 dead-code warnings, as before).cargo test --release --workspace -- --test-threads=1: everything passes exceptxtaskrepository_passes_policy, which flagsemit/lower.rsover 512 KiB (from #814) and a local build directory, nothing from this merge.--console series-s,VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=0 VICTORY_CARD_FETCH_INFLIGHT=1 VICTORY_TEXTURE_DROP_MIPS=1 VICTORY_TEXTURE_ROOM_PERCENT=82, same scene (the first cell):VICTORY_INPLACE=4Known
VICTORY_CARD_TIME).🤖 Generated with Claude Code
Imported from fxceless/victory-fork. Originally posted by gangg111 on 2026-11-25T15:10:38Z.
Merged current main (
a253706,0b0074e) into the branch; conflicts in copystat, watch, lib and host resolved (main's VICTORY_CARD_REHASH_RUNS default, copy_back() and frame log taken; #814's overlay plane kept, but a present held behind a queue passes no overlay). descriptor/host.rs needed main's record_print, sync_tables and COPIED_TABLED. Workspace tests pass. Rerun in the game with the same switches and VICTORY_INPLACE=4: cell lit, 260 to 290 ms a frame, 0 draws dropped, no device loss.Imported from fxceless/victory-fork. Originally posted by npanu420 on 2026-11-25T15:17:19Z.
Tested this branch as published (
pr-980head) on an RTX 3070 8 GB + i9-9900X, Windows 11, Series S, with the switches from your description plusBAKE_TEXTURES_MS=0.With both parts on (
BVH_BUILDER=1 BVH_QUARANTINE=0 CARD_FETCH_INFLIGHT=1 TEXTURE_DROP_MIPS=1 TEXTURE_ROOM_PERCENT=82 INPLACE=4): it crashes during loading, about 110 s in, 2 of 2 launches (cold and warm pipeline cache):0xc0000005 at <title image>+0x23cf683 (write 0x0).Each part alone does not crash:
INPLACE=4)INPLACE=4without the builderSo the crash needs the resident/in-place memory and live ray tracing together, at least on an 8 GB card. It may be memory: the title's own null write often follows a failed allocation, and 8 GB with
ROOM_PERCENT=82is tight. On this card, ray tracing alone is about 1 fps for now.For reference, the same machine runs at ~188-220 ms/frame in steady play with the BVH off, using #917's
VICTORY_AMBIENT=0.6as a stand-in for the bounce light.(AI-assisted, Claude Code. No game data.)
Imported from fxceless/victory-fork. Originally posted by Proudnoob4 on 2026-11-25T16:19:57Z.
Tested
rt-772-vram-residents(8685f5b) on an RTX 4080 16 GB (Windows 10, i5-13600K, 32 GB RAM, driver 621.01, Series X profile; local Agility SDK opt-in only for Win10 loading).1. Shader / BVH pipeline check (
VICTORY_HOST_WAVE=32)XboxBvhBuilder.dll: 52 / 52 compute pipelines translated and created.shaders.rpf: 2,682 / 2,682 compute pipelines, 14,199 / 14,247 VS+PS, and 8,762 / 8,765 mesh pipelines created.2. In-game runs (
VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=0 VICTORY_INPLACE=4 VICTORY_CARD_FETCH_INFLIGHT=1 VICTORY_TEXTURE_DROP_MIPS=1 VICTORY_TEXTURE_ROOM_PERCENT=82)rt980_x, 600 s;rt980_warm2, 400 s):the ray-tracing structure builder runs: all of its programs have host pipelines pipelines=53,dropped 0 without a host pipeline (0 being made).rt980_warm2): 2.00 fps / 490.2 ms median (4,874–4,951 draws/frame;preparing367–406 ms withcopies212–230 ms / ~158 MB;VICTORY_CARD_TIME:title lists167–170 ms,upload to residents9.5–10.1 ms,merge14.6–19.6 ms,from one submission's end to the next276–331 ms).VICTORY_INPLACE=4): 124 alive (747 MB / 9,168 MB budget), ~193–203 MB uploaded from arenas, ~480 MB compared in ~110 merge passes, ~31 MB merged back;0.0view mismatches. Note the default1/4RAM arena cap (8,127 MBon 32 GB) filled (8071 MB locked of 8127 MB, 16 arenas fell back to copies).frame-2150,frame-2300): prison cell, HUD prompt, hair, and yard inmates render cleanly, though the bottom-edge blocky artifact fromf85101bis still present.3. Failure mode when adding
VICTORY_ASYNC_SUBMIT=1 VICTORY_QUEUE2=1 VICTORY_INPLACE_MB=16384rt980_warmhitDXGI_ERROR_DEVICE_HUNG(0x887A0006) at 168 s right after registering two 4 MBVICTORY_INPLACE=4residents (start=0xd86400000and0xd77000000), soINPLACE=4+ASYNC_SUBMIT/QUEUE2is not yet safe together.Tested with AI assistance (Gemini 4 Hydrogen).
Imported from fxceless/victory-fork. Originally posted by Zayfway on 2026-11-25T16:26:15Z.
Tested
pr-980head (9156270) on a 12 GB card with 16 GB of RAM, to separate VRAM from host memory in the crash @npanu420 saw. AI-assisted (Claude Code); every number below is from this machine.Machine: RTX 3060 12 GB (driver 610.88, 32-lane), Ryzen 7 5700X, 16 GB RAM, system-managed pagefile (commit limit ~32 GB), Windows 11 26300, Series X profile, warm shader cache (
translate --warm all: 25,707 translated, 278 do not).1. The head does not build with diagnostics
cargo build --profile diag -p victory --features diagnosticsfails:The merge kept main's two reads of these counters but dropped their declarations, along with the
addinwatch::writesthat fills them. Putting the two variants back afterIndirectBoundedinenum C(as on main0b0074e) makes it build. The counters then read 0 until thewatch.rsside comes back.2. In the game (diag build, same scene: opening cutscene, measured from world +60 s)
LEVELS_ON_DEMAND=1)runs ... pipelines=53no shared buffer error=0x8007000E size=4194304; 3 s later an access violation innvwgf2umx.dll(read 0x36) underHost::submit→ExecuteCommandListsSo on this machine the limit is host commit, not VRAM. The card kept 3+ GB free in both runs, and the first failure is a 4 MB shared (system-memory) buffer. That fits npanu420's "needs both parts together" on 8 GB: ray tracing adds ~2.6 GB of host copies, and the in-place/resident part adds its own. I did not prove that the failed buffer is what the driver tripped on. The callers handle
None, so this is a correlation, not a traced cause.For reference, on the same machine
mainat0b0074e(ASYNC_SUBMIT QUEUE2 TEXTURE_NO_WAIT COPY_PLAIN LEVELS_ON_DEMAND) ran 6 world runs without a crash, at 2.1–2.3 fps and 22–25 GB private.Not tested:
VICTORY_INPLACE=4together with the builder (it would only add host memory here), Series S, a larger pagefile. The two runs above do not reach the lit cell, so I cannot say anything about the picture with ray tracing on this card yet.Imported from fxceless/victory-fork. Originally posted by Zayfway on 2026-11-25T16:49:39Z.
Follow-up, a correction of my comment above: host commit was a symptom, not the cause.
I raised the pagefile to 32 GB (commit limit ~32 → 48 GB, same 16 GB of RAM) and reran the same
pr-980build with the same ray-tracing switches.pipelines=53), and 0 draws are dropped.a host command list did not close (0x8007000E).title memory by address: shaders touched pages that had no copy ... pages=1609 first=0x10000;loose window budget reached (VICTORY_MEMORY_MB) mb=1536.So the traversal reads memory from near-null pointers (0x10000 up), and the copies made for those reads are what fill memory, here as in the earlier run. That matches what #994 describes: dispatches by thread counts that over-run, and the builder then reading pointers out of garbage. #980 converts
USE_THREAD_DIMENSIONScounts to groups (draw.rs), but its "without thread-count masking" warning never fired here. I could not confirm the link from the logs, so it is a consistent reading, not a traced cause.Same machine as above (RTX 3060 12 GB, Ryzen 7 5700X, 16 GB RAM, Windows 11 26300, Series X, diag build with the
copystatfix). AI-assisted (Claude Code).Imported from fxceless/victory-fork. Originally posted by loftymocha on 2026-11-26T04:59:03Z.
RTX 5070 12 GB (32-lane),
pr-980head9156270: live ray tracing runs fully and holds 5 minutes on both profiles, but the cell's light is wrong: dark on Series X, washed out on Series S. This is a 12 GB card with 32 GB of RAM, between the 8 GB and 16 GB reports above. Thanks to gangg111, sirrus98 and staronthehorizon for the branch, and to Zayfway for the build fix.Setup: RTX 5070 12 GB (driver 32.0.16.1742), Ryzen 7 7800X3D, 32 GB DDR5 + 64 GB page file, Windows 11 Pro 26300. Diag build of the head as published, plus Zayfway's two
copystat.rsvariants (WatchFailed,WatchKnownView) so--features diagnosticsbuilds; nothing else changed. Your switches:VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=0 VICTORY_CARD_FETCH_INFLIGHT=1 VICTORY_TEXTURE_DROP_MIPS=1 VICTORY_TEXTURE_ROOM_PERCENT=82 VICTORY_INPLACE=4, plusVICTORY_SHADER_LOOP_LIMIT=256. NoASYNC_SUBMIT/QUEUE2(after Proudnoob4's device hang). Its own cache, empty before the first run. One launch per profile, from the prologue checkpoint, played by hand, stopped by my runner 300 s afterbuilder runs. Counts and descriptions only.--console series-x--console series-sruns ... pipelines=53at +79 spipelines=53at +64 sVICTORY_CARD_TIMEtitle listsshaders touched pages that had no copy50 times. Unlike Zayfway's 3060, the first addresses are ordinary (first=0x705fd0000on X,0x50c460000on S), not near-null. Series X also hitloose window budget reached (VICTORY_MEMORY_MB) mb=1538once. Neither ran out of memory.INDIRECT_WINDOW.Not tested:
VICTORY_INPLACE=4off; more than one launch per profile; #905 alone.AI-assisted (Claude Code)
Imported from fxceless/victory-fork. Originally posted by loftymocha on 2026-11-26T05:09:45Z.
Follow-up to my RTX 5070 report above: without
VICTORY_INPLACE=4, the same build on Series S shows the cell lit by the traced light. So on this card the washed-out picture comes from the in-place/resident part (#772), not from #814's ray tracing.The same build (
9156270+ the twocopystat.rsvariants), the same cache, save and Series S profile as the washed-out run. The only change is thatVICTORY_INPLACE=4is left out. Switches:VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=0 VICTORY_CARD_FETCH_INFLIGHT=1 VICTORY_TEXTURE_DROP_MIPS=1 VICTORY_TEXTURE_ROOM_PERCENT=82 VICTORY_SHADER_LOOP_LIMIT=256,--console series-s. One launch, stopped 300 s afterbuilder runs. Counts and descriptions only.VICTORY_INPLACE=4(run above)pipelines=53at +64 spipelines=53at +73 sshaders touched pages that had no copywarnings as before, at ordinary addresses (first=0x50c510000), andloose window budget reached ... mb=1536once.VICTORY_INPLACE=4: not run yet, so I can't say whether the dark Series X cell above has the same cause.AI-assisted (Claude Code)
Imported from fxceless/victory-fork. Originally posted by loftymocha on 2026-11-26T05:19:48Z.
Last one from me on this card: Series X without
VICTORY_INPLACE=4is not dark either, so on the RTX 5070 the in-place part causes both bad pictures, dark on X and washed out on S. Without it, Series X shows the traced light but with many more artifacts than Series S.Same build, cache and save as my two comments above,
--console series-x, the same switches withoutVICTORY_INPLACE=4. One launch, stopped 300 s afterbuilder runs(+61 s). Counts and descriptions only.All four launches on this card side by side. Each held 300 s with the builder running, with 0 exceptions, 0 device losses, 0 programs refused or untranslated, and 0 draws dropped:
pr-980on RTX 5070VICTORY_INPLACE=4Series X without in-place, by eye:
So on this card I'd separate two things:
VICTORY_INPLACE=4leaving the traced light wrong (dark or blown out), and, without it, noise or invalid values in the lighting that Series X makes much worse. Theshaders touched pages that had no copywarnings (50 per run, ordinary addresses,first=0x11a530000here) and oneloose window budget reached ... mb=1536appear in every run, lit or not.Not tested: more than one launch per cell;
VICTORY_CARD_FETCH_INFLIGHT=0; another driver.AI-assisted (Claude Code)
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.