New GPU/CPU Pipeline, 30+ FPS, Ultrawide 32:9 Support, Ray Tracing + Ray Reconstruction, Untie Physics from FPS, NVIDIA Reflex, and more #18

Closed
Kemerd wants to merge 85 commits from upstream-pr/18 into main
Kemerd commented 2026-11-27 06:41:38 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Kemerd on 2026-11-27T06:41:38Z.


What this is

Higher frame rates for the Series X profile on NVIDIA, plus the ray-tracing seam, 32:9, HDR10, Reflex and DLSS Ray Reconstruction groundwork. Everything new is behind a VICTORY_* switch that is off by default. The launcher's -Fast preset turns on the ones that have been through the game.

Results (RTX 5090, Series X profile, 2560x1440, DLSS quality, open world, ray tracing off)

before this change with -Fast
median frame rate in the world 11.8 fps (84.8 ms) 21.9 fps (45.7 ms)
best frame rate in the world 18.3 fps (54.7 ms) 31.9 fps (31.3 ms)
first load of a new build ~100 s of pipelines made again in every run pipelines kept in the library after the first run

With ray tracing off the card now waits on us for close to nothing. What remains is the submitting thread, at 31-41 ms a frame preparing. The parallel-submit work below starts on it.

Ray tracing works but tanks the frame rate. With VICTORY_RT_NATIVE=1 the world plays with the title's own rays, through the translated console builder, at 5-8 fps; that builder takes 42-105 ms of GPU a frame. It stays off by default. The fix is a renderer of our own for it (hardware structures and inline ray queries on the RTX cores), plus DLSS Ray Reconstruction drawing from the title's G-buffer. Both come in a follow-up PR (see "Next").

Pipelines from pieces (VICTORY_PIPELINE_PIECES=1, in -Fast for graphics)

  • What they are. Through device methods 0x1c8 and 0x218 the title builds many pipelines from loose pieces (console code, metadata and register packets) instead of finished containers. They are now assembled into containers of ours and translated. Without the switch those calls are refused and their draws never happen.
  • Never worse than off (VICTORY_PIPELINE_PIECES_REFUSE_UNTRANSLATED=1). The stages are translated when the title creates the pipeline; the shader cache makes that a lookup after the first run. If one does not translate, the call is refused there and the title falls back to the pipeline it would otherwise make.
    • Before this, a pipeline was handed out and failed later on a worker, so the title held a pipeline that could never draw.
    • The scene composite was one of them. The result was a grey or black world, menus missing letters, and an interface that was never cleared.
  • One kind only (VICTORY_PIPELINE_PIECES_ONLY=graphics|compute). Some compute programs from pieces still translate to a wrong layout, and the world goes grey. -Fast therefore uses graphics only until that is fixed.
  • Lane fix. Compute programs from pieces are now marked (COMPUTE_PIECES), and a select by a mask held as a number takes the console's lane numbers. This removes 61 cross-lane assertion failures; ordinary compute output is byte-identical over 2,734 containers.
  • Hash-keyed lists match them. Pipelines from pieces carry the program they stand for, so hash-keyed lists match them: the passes the launcher leaves out, the interface composite, and frame generation's interface copy.

Submitting thread in parallel (in -Fast)

These come from a split of the submitting thread (58.9 ms a frame) and a design judged against the code:

  • VICTORY_REFRESH_SET (+ _CHECK): one refresh step per list, holding the set of copies, instead of about 52,000 single steps a frame walked eight times.
  • VICTORY_TITLE_WRITE_RANGE (+ _CHECK): a title write clears only the refreshes it overlaps. In the runs, 184 were kept a frame with 0 violations.
  • VICTORY_UNDER_PARTS: merging under writes reads only the 4 KiB parts written since, not whole 64 KiB pages.
  • VICTORY_SEND_THREAD=1: ExecuteCommandLists, the signal and the bookkeeping run in order on a thread of their own. In the runs: 16 sends a frame, 0 out of order, and the submitting thread waited about 0 ms.
  • Counters for every walk, poll and flush on the submitting thread.

Loading faster (launcher default)

  • VICTORY_PIPELINE_SAMPLER_TABLE=1. Pipelines with static samplers were made again by the driver in every run, because a stored one can come back with another pipeline's samplers.
    • The cost was 1,121 pipelines, 1,610 s of worker time, about 1.4 s each and up to 18 s.
    • As a sampler table they are stored and loaded like the rest, at about 5 ms each.
  • Loading figures on screen. Under the frame rate during loading: shaders still being made, DirectStorage MB/s and its queue, and textures and uploads waiting.

Display

  • 32:9 (VICTORY_DISPLAY_WIDE=5120x1440). The title's display mode is patched wider, so its camera, culling and motion vectors are made for the wide picture. The interface stays 16:9 in the middle (VICTORY_UI_LETTERBOX). The composite is found by its pair of programs, or by its shape drawn into an output-sized target, so the band holds with pipelines from pieces too. At 32:9 the title's larger screen-sized memory left about 152 MiB in the address window list uploads must live in; our memory-by-address directory and a memory arena, which no shader reaches, took 80 MiB of it, an upload allocation came back null and the title's ray-tracing rehydrate exited. With VICTORY_DISPLAY_WIDE set those two now go above that window first, and a failed upload allocation logs a warning. 32:9 with HDR10 and -Fast now plays in the world.
  • HDR10 (VICTORY_HDR=1, VICTORY_HDR_WHITE, F1 menu). The presented plane is converted to HDR10 (ST 2084, BT.2020) at the display's peak.

DLSS Ray Reconstruction (VICTORY_DLSS_RR=1)

  • Loads but does not draw yet. It loads through Streamline 2.14.16 (NGX 310.9.16) and reports its requirements.
  • Targets found. VICTORY_RR_TARGETS=1 names the passes that write what DLSS reads. The runs found the G-buffer resolve, whose targets RR needs as guides.
  • Drawing comes with the ray-tracing renderer in the follow-up PR.

Ray tracing (VICTORY_RT_NATIVE=1, off by default: it works, and costs too much)

  • The builder's calls go through the layer. New victory-hle/src/modules/bvh_builder.rs interposes the seven functions the title imports from its builder library (construct, destroy, batched build, batched rehydrate, copy, prebuild info, Morton width), in the same way the FidelityFX imports are interposed. Today each call is counted, timed and forwarded; this is the seam where calls can be replaced one by one. VICTORY_RT_TRACE=1 logs the first calls of each kind in full.
  • VICTORY_RT_NATIVE=1 also asks for the builder (as VICTORY_BVH_BUILDER=1 does), so the ray-tracing passes are no longer left out.
  • The batched build description is typed. Its layout was read off traced calls: an 80-byte entry holding the Direct3D 12 build description, then a count and a pointer to the post-build facts asked for (where the compacted size is to be stored). See docs/broadside-format.md.
  • Fix: the first build no longer freezes the frame. The builder's pipelines (53 here) were all made one after another on a recording thread at the first builder dispatch. On a cache without them the frame stood for 32 s and the title's watchdog ended the run. They now go to the pipeline workers when the title creates them, and the first dispatch only waits for stragglers, made side by side (pipeline/make.rs ahead).
  • Timing for the by-address memory. A second periodic line splits the recording threads' time around the module's mutex by section, and a builder dispatch's recording into its three parts.
  • Exact extents. A dispatch names its memory by root views, which have no length; the module guessed 4 MiB per written view and 256 KiB per read one. The interposer now asks the builder's own size calculation for each build and tells the GPU side how long each structure and scratch memory is; a compacted copy is sized by the value the title read back. Views the calls did not name fall back to the guesses, and the new line counts both. In the run after it, 160 to 430 root views a frame were sized by the calls against 6 to 100 by the guess, and every traced copy read back a plausible compacted size.
  • Fix: arenas when the title's address range is full. The module's 64 MiB arenas were taken in [4 GiB, 2^37), where the title's own memory lies. With the world streamed in there was no hole of that size left in two runs of four: the twentieth arena could not be had, every builder dispatch asked for it again (5 to 18 s of every frame under the module's mutex), and the title's watchdog ended both runs. No shader finds an arena by its address, so they now fall back to anywhere below 2^40; a failure backs off for 30 frames, says why, and gives its reservation back. The run after it reached 23 arenas with no failure.

Measured (RTX 5090, Series X profile, 2560x1440, DLSS quality)

  • With the switch on, the world streams in and plays: no errors, no device loss, the builder never turns itself off.
  • Cost of the translated builder in the open world: 130-160 ms a frame, 76-123 ms of it on the GPU, at about 460 structures built a second. In a cutscene: 56-68 ms a frame. With the world streamed in and its pipelines made: 75-80 ms a frame in both runs that got there.
  • While the host pipelines of a newly entered area were being made (some 290 queued in one run), frames took about 300 ms with the card under a quarter busy: the pipeline workers take the processor from the title's threads. Not fixed here.
  • Recording cost of the by-address memory: 12-27 ms a frame over all threads, nearly all in making root views' pages ready.
  • Known wrong: about 800 pages a frame were still read without a copy after the faults' budget for the run was spent (one long stretch of addresses, which fits a top-level structure longer than the 4 MiB guess). With the exact extents it is 290 to 430 a frame, so the guess was part of it and the rest has a cause not found yet.

NVIDIA Reflex (VICTORY_REFLEX=on or boost, F1 menu)

  • Reflex by itself, with or without frame generation. Each frame has its own token, used for the sleep and every marker; the token is carried through the title's own frame token, so submissions and the present find their frame by it.
  • Where the sleep is. The first version slept at the frame's origin wait. The runs showed the title reading its pad after the frame's first submission, nearly every frame in the world: what a frame submits right after that wait was simulated earlier, and the sleep there held back a finished frame instead of making input fresher. The sleep and SimulationStart / the input sample now happen at the reading that opens a simulation, and the next origin wait takes that frame's index. Frames with no reading to take (cutscenes, loading, menus that read rarely) sleep at the origin wait as before; an open simulation is let go only after four frame intervals.
  • A periodic line reports Reflex's own state; docs/dlss.md has the switch, the log lines and the limits.
  • Needs Streamline loaded (VICTORY_DLSS=1 or VICTORY_FRAMEGEN=1). The rework is reviewed and unit-tested against the Streamline 2.14.16 headers and has not been run in the game yet.

Streaming (all switches off by default, compiled only unless said)

Measured first: in streaming frames the title's thread stood at its present for most of the frame, waiting for our submitting thread, which in turn waited for lists still being translated; the card was idle most of that time. Twelve changes came out of that, each behind its own switch and checked by a second reader before it was written:

  • VICTORY_PIPELINE_WAIT_ONCE: a wait for a host pipeline that cannot end inside the frame's budget is not begun.
  • VICTORY_PIPELINE_WAIT_BACKLOG=n: no waiting for host pipelines at all while more than n are queued (the wait could not be met anyway).
  • VICTORY_PIPELINE_SLOW_WORKERS=n: extra threads make the pipelines known to be slow while nothing is requested.
  • VICTORY_TEXTURE_LOOK_ONCE: a guarded texture nothing wrote is read whole at most once a frame; a line counts the second looks either way.
  • VICTORY_TEXTURE_READ_AHEAD: a list's texture uploads are read by threads of ours once the pass lets go of them, ahead of the submission.
  • VICTORY_STAGING_NO_ZERO: a staging piece the detiling writes whole is not zero-filled first.
  • VICTORY_SEND_COPIED_FIND: a title buffer copy finds the copies it touches by where they start, not by a walk.
  • VICTORY_MEMORY_FRESH: a new arena and the directory start with every page taken, so their zeros are not uploaded.
  • VICTORY_MEMORY_ARENAS_AHEAD: the next 64 MiB arena is made ahead on a thread of its own instead of under the module's mutex.
  • VICTORY_MEMORY_QUIET: a dispatch whose pages its list already named returns without the mutex (check counts what such calls would have done).
  • VICTORY_MEMORY_LAND_SENT, VICTORY_MEMORY_ASK_RUNS: landing stores reach the same submission's sends; a builder's root view on a held page is not asked about again, with the time split.
  • VICTORY_FILES_BUFFERED: the title's read-only package opens that bypass the system cache may read through it.
  • VICTORY_DSTORAGE_STATS: one summary line for DirectStorage (requests, megabytes, workers, the longest wait).
  • VICTORY_MEMORY_FAULT_PAGES=n: the run's budget of pages taken from faults can be raised (it was 2,048, spent within minutes with ray tracing on); a page found empty inside a structure the builder's calls named is placed whole outside the budgets.

Submit thread and memory by address (off by default, compiled and unit-tested)

From the ray-tracing run's split of the submitting thread (62.8 ms a frame: 11.3 asking the write watch, 30.5 in the lists' steps, 6.0 card copies, the rest planning, waiting and sending):

  • VICTORY_MEMORY_DIRTY: arena pages are written only by this module, so it notes them and a submission brings up only the written runs, instead of asking the kernel about every arena (about 23 of them, 0.3 ms each, every frame).
  • VICTORY_MEMORY_LEAN: pages already placed are not asked about again, and new ones are asked about before the mutex is taken, with a per-frame cache of refusals.
  • VICTORY_MEMORY_BUFFER_FAULTS: a page found empty that lies whole in a title buffer gets a place outside the budgets. A new line says, in nine kinds, why map refused each page.
  • VICTORY_REFRESH_PROBE_US=us: a small flush of refreshes is done on the submitting thread for that long before the rest is handed to the kept threads (each hand-over costs a wake and a wait).
  • VICTORY_DECLARE_ACROSS_LISTS: a range shaders write is declared once per submission, not once per list.
  • The card steps' line counts why a step was refused, by reason.
  • Pipeline library: pipelines whose root signature has static samplers no longer go through the library (the driver bakes the samplers' places into the compiled pipeline, so a stored one can come back wrong); VICTORY_LIBRARY_STATIC_SAMPLERS=1 keeps the old behaviour. Samplers as a table instead (VICTORY_PIPELINE_SAMPLER_TABLE=1) make those pipelines storable again; the launcher now sets it (above).

On screen

  • Under the frame-rate line, SHADERS: n while host pipelines are still being made, so a slow area is visibly the pipeline queue.

Display

  • VICTORY_DISPLAY_WIDE=WxH (not run yet). With the 1440p output patch, the display mode is patched to a wider size (5120x1440 for 32:9) instead of 2560x1440, so that the title's own camera, culling and motion vectors are made for the wide picture. Height stays 1440; the width is a multiple of 8 from 2560 to 7680. The patched image goes to a cache folder of its own. Tests run against the retail image when VICTORY_DISPLAY_PROFILE_TEST_IMAGE names it.
  • VICTORY_ASPECT and VICTORY_UI_LETTERBOX (earlier local work, included as it was): the first widens standalone projection matrices in the copy on its way to the card; the second fits the interface plane in the two-plane composer. Limits, from reading the code: the first changes no resolution and does not reach matrices the title derives on the CPU; the second only acts on the Series S two-plane path. The display-mode patch above is meant to replace the first.

Not behind a switch

  • Game speed under the launcher's frame cap. The title's read of its rate setting was only patched when VICTORY_FRAME_INTERVAL_MS was set; the launcher sets VICTORY_FRAME_INTERVAL_US, so the title kept its 30 Hz step floor while frames came faster. Both variables now count. The log line confirms 3 of 3 sites patched in the runs here; that the speed is right at high frame rates was not checked by eye.
  • lib.rs: mod ambient and mod aspect each get their own cfg(windows).
  • scripts/get-nvidia-sdks.ps1: fetches only the files that are missing (a running game holds the loaded ones), and -RayReconstruction also fetches the two DLSS Ray Reconstruction files. Nothing uses them yet.

Diagnostics

  • VICTORY_PIPELINE_DUMP=<folder> writes what the two unimplemented pipeline creation methods (device slots 0x1c8 and 0x218) were given, for the first calls of each, so that they can be written. The folder must be outside the repository.
  • F1 menu: an item for VICTORY_RT_NATIVE.

Documents

  • AGENTS.md: rules for people and coding agents changing this code (where the bytes are, one move per byte, nothing long on the title's threads, switches, measuring).
  • docs/broadside-format.md: the structures' formats with where each fact lives in the tree, the builder's interface, and what the runs showed.

Background: how the title traces rays

Short form of docs/broadside-format.md, for reading the ray-tracing part above.

  • The title keeps its acceleration structures in plain title memory and walks them in its own compute programs. The only GPU help is one instruction that tests a ray against one node; the stack, instance transforms and hit logic are the program's code. The tree already lowers that node test to DXIL arithmetic, with a CPU reference that matches it.
  • Structures are built by the console's builder library, which the title calls through seven functions of a DXR-shaped class. Its programs are compute shaders (53 host pipelines in the runs here).
  • The static world's structures ship packed and are unpacked in place on the GPU, once. Dynamic ones are built every frame or refitted, their compacted size is stored into a small title buffer, and the title copies each to a place of that size.
  • What this change adds is the seam: with VICTORY_RT_NATIVE=1 those seven calls pass through the layer, where they can be measured now and replaced one by one later.

Next (follow-up PR)

  • A ray-tracing renderer of our own. Hardware acceleration structures are built from the geometry the title gives its builder, and the title's traversal loops become inline ray queries on the RTX cores. This replaces the translated console builder, which takes 76-123 ms of GPU a frame today. Designs for this, and for a builder in the console's own format, are being judged.
  • DLSS Ray Reconstruction drawing. The G-buffer guides are tagged and RR is evaluated in place of super resolution, which stays as the fallback.
  • Compute pipelines from pieces. The root-parameter layout built for them is wrong: 68% fail on "an address not from a root parameter", and some translate to wrong bindings.
  • Translator gaps on pieces: partial-channel stores, pixel system inputs, two-term addresses.
  • The compacted-size race (memory.rs, sizes_wait).

Checks

  • Builds and tests:
    • cargo check -p victory-gpu -p victory-hle -p victory-loader -p victory --locked;
    • cargo test -p victory-shader --lib (311 passed);
    • the touched modules' tests: victory-gpu (sets, shadow, send_thread, lean, watch, pipeline, pieces, streamline, draw, compose), victory-hle bvh_builder, victory native_1440p and victory-loader frame_rate.
  • Runs in the game with -Fast: menus readable, the world drawn, no device loss. The frame rates above come from the log's periodic lines in the open world, counting lines with more than 3,000 draws a frame.
  • Ray tracing: runs with VICTORY_RT_NATIVE=1 play in the world without errors, at 5-8 fps.
  • Reflex: unit-tested against the Streamline 2.14.16 headers; not measured in the game yet.

Nothing derived from the game is in the change (docs/asset-policy.md).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5522423814 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/18). Originally posted by [Kemerd](https://github.com/Kemerd) on 2026-11-27T06:41:38Z. --- ## What this is Higher frame rates for the Series X profile on NVIDIA, plus the ray-tracing seam, 32:9, HDR10, Reflex and DLSS Ray Reconstruction groundwork. Everything new is behind a `VICTORY_*` switch that is off by default. The launcher's `-Fast` preset turns on the ones that have been through the game. ## Results (RTX 5090, Series X profile, 2560x1440, DLSS quality, open world, ray tracing off) | | before this change | with `-Fast` | |---|---|---| | median frame rate in the world | 11.8 fps (84.8 ms) | **21.9 fps** (45.7 ms) | | best frame rate in the world | 18.3 fps (54.7 ms) | **31.9 fps** (31.3 ms) | | first load of a new build | ~100 s of pipelines made again in every run | pipelines kept in the library after the first run | With ray tracing off the card now waits on us for close to nothing. What remains is the submitting thread, at 31-41 ms a frame preparing. The parallel-submit work below starts on it. **Ray tracing works but tanks the frame rate.** With `VICTORY_RT_NATIVE=1` the world plays with the title's own rays, through the translated console builder, at 5-8 fps; that builder takes 42-105 ms of GPU a frame. It stays off by default. The fix is a renderer of our own for it (hardware structures and inline ray queries on the RTX cores), plus DLSS Ray Reconstruction drawing from the title's G-buffer. Both come in a follow-up PR (see "Next"). ## Pipelines from pieces (`VICTORY_PIPELINE_PIECES=1`, in `-Fast` for graphics) - **What they are.** Through device methods 0x1c8 and 0x218 the title builds many pipelines from loose pieces (console code, metadata and register packets) instead of finished containers. They are now assembled into containers of ours and translated. Without the switch those calls are refused and their draws never happen. - **Never worse than off** (`VICTORY_PIPELINE_PIECES_REFUSE_UNTRANSLATED=1`). The stages are translated when the title creates the pipeline; the shader cache makes that a lookup after the first run. If one does not translate, the call is refused there and the title falls back to the pipeline it would otherwise make. - Before this, a pipeline was handed out and failed later on a worker, so the title held a pipeline that could never draw. - The scene composite was one of them. The result was a grey or black world, menus missing letters, and an interface that was never cleared. - **One kind only** (`VICTORY_PIPELINE_PIECES_ONLY=graphics|compute`). Some compute programs from pieces still translate to a wrong layout, and the world goes grey. `-Fast` therefore uses graphics only until that is fixed. - **Lane fix.** Compute programs from pieces are now marked (`COMPUTE_PIECES`), and a select by a mask held as a number takes the console's lane numbers. This removes 61 cross-lane assertion failures; ordinary compute output is byte-identical over 2,734 containers. - **Hash-keyed lists match them.** Pipelines from pieces carry the program they stand for, so hash-keyed lists match them: the passes the launcher leaves out, the interface composite, and frame generation's interface copy. ## Submitting thread in parallel (in `-Fast`) These come from a split of the submitting thread (58.9 ms a frame) and a design judged against the code: - **`VICTORY_REFRESH_SET`** (+ `_CHECK`): one refresh step per list, holding the set of copies, instead of about 52,000 single steps a frame walked eight times. - **`VICTORY_TITLE_WRITE_RANGE`** (+ `_CHECK`): a title write clears only the refreshes it overlaps. In the runs, 184 were kept a frame with 0 violations. - **`VICTORY_UNDER_PARTS`**: merging under writes reads only the 4 KiB parts written since, not whole 64 KiB pages. - **`VICTORY_SEND_THREAD=1`**: `ExecuteCommandLists`, the signal and the bookkeeping run in order on a thread of their own. In the runs: 16 sends a frame, 0 out of order, and the submitting thread waited about 0 ms. - **Counters** for every walk, poll and flush on the submitting thread. ## Loading faster (launcher default) - **`VICTORY_PIPELINE_SAMPLER_TABLE=1`.** Pipelines with static samplers were made again by the driver in every run, because a stored one can come back with another pipeline's samplers. - The cost was 1,121 pipelines, 1,610 s of worker time, about 1.4 s each and up to 18 s. - As a sampler table they are stored and loaded like the rest, at about 5 ms each. - **Loading figures on screen.** Under the frame rate during loading: shaders still being made, DirectStorage MB/s and its queue, and textures and uploads waiting. ## Display - **32:9** (`VICTORY_DISPLAY_WIDE=5120x1440`). The title's display mode is patched wider, so its camera, culling and motion vectors are made for the wide picture. The interface stays 16:9 in the middle (`VICTORY_UI_LETTERBOX`). The composite is found by its pair of programs, or by its shape drawn into an output-sized target, so the band holds with pipelines from pieces too. At 32:9 the title's larger screen-sized memory left about 152 MiB in the address window list uploads must live in; our memory-by-address directory and a memory arena, which no shader reaches, took 80 MiB of it, an upload allocation came back null and the title's ray-tracing rehydrate exited. With `VICTORY_DISPLAY_WIDE` set those two now go above that window first, and a failed upload allocation logs a warning. 32:9 with HDR10 and `-Fast` now plays in the world. - **HDR10** (`VICTORY_HDR=1`, `VICTORY_HDR_WHITE`, F1 menu). The presented plane is converted to HDR10 (ST 2084, BT.2020) at the display's peak. ## DLSS Ray Reconstruction (`VICTORY_DLSS_RR=1`) - **Loads but does not draw yet.** It loads through Streamline 2.14.16 (NGX 310.9.16) and reports its requirements. - **Targets found.** `VICTORY_RR_TARGETS=1` names the passes that write what DLSS reads. The runs found the G-buffer resolve, whose targets RR needs as guides. - **Drawing** comes with the ray-tracing renderer in the follow-up PR. ## Ray tracing (`VICTORY_RT_NATIVE=1`, off by default: it works, and costs too much) - **The builder's calls go through the layer.** New `victory-hle/src/modules/bvh_builder.rs` interposes the seven functions the title imports from its builder library (construct, destroy, batched build, batched rehydrate, copy, prebuild info, Morton width), in the same way the FidelityFX imports are interposed. Today each call is counted, timed and forwarded; this is the seam where calls can be replaced one by one. `VICTORY_RT_TRACE=1` logs the first calls of each kind in full. - **`VICTORY_RT_NATIVE=1` also asks for the builder** (as `VICTORY_BVH_BUILDER=1` does), so the ray-tracing passes are no longer left out. - **The batched build description is typed.** Its layout was read off traced calls: an 80-byte entry holding the Direct3D 12 build description, then a count and a pointer to the post-build facts asked for (where the compacted size is to be stored). See `docs/broadside-format.md`. - **Fix: the first build no longer freezes the frame.** The builder's pipelines (53 here) were all made one after another on a recording thread at the first builder dispatch. On a cache without them the frame stood for 32 s and the title's watchdog ended the run. They now go to the pipeline workers when the title creates them, and the first dispatch only waits for stragglers, made side by side (`pipeline/make.rs` `ahead`). - **Timing for the by-address memory.** A second periodic line splits the recording threads' time around the module's mutex by section, and a builder dispatch's recording into its three parts. - **Exact extents.** A dispatch names its memory by root views, which have no length; the module guessed 4 MiB per written view and 256 KiB per read one. The interposer now asks the builder's own size calculation for each build and tells the GPU side how long each structure and scratch memory is; a compacted copy is sized by the value the title read back. Views the calls did not name fall back to the guesses, and the new line counts both. In the run after it, 160 to 430 root views a frame were sized by the calls against 6 to 100 by the guess, and every traced copy read back a plausible compacted size. - **Fix: arenas when the title's address range is full.** The module's 64 MiB arenas were taken in [4 GiB, 2^37), where the title's own memory lies. With the world streamed in there was no hole of that size left in two runs of four: the twentieth arena could not be had, every builder dispatch asked for it again (5 to 18 s of every frame under the module's mutex), and the title's watchdog ended both runs. No shader finds an arena by its address, so they now fall back to anywhere below 2^40; a failure backs off for 30 frames, says why, and gives its reservation back. The run after it reached 23 arenas with no failure. ### Measured (RTX 5090, Series X profile, 2560x1440, DLSS quality) - With the switch on, the world streams in and plays: no errors, no device loss, the builder never turns itself off. - Cost of the translated builder in the open world: 130-160 ms a frame, 76-123 ms of it on the GPU, at about 460 structures built a second. In a cutscene: 56-68 ms a frame. With the world streamed in and its pipelines made: 75-80 ms a frame in both runs that got there. - While the host pipelines of a newly entered area were being made (some 290 queued in one run), frames took about 300 ms with the card under a quarter busy: the pipeline workers take the processor from the title's threads. Not fixed here. - Recording cost of the by-address memory: 12-27 ms a frame over all threads, nearly all in making root views' pages ready. - Known wrong: about 800 pages a frame were still read without a copy after the faults' budget for the run was spent (one long stretch of addresses, which fits a top-level structure longer than the 4 MiB guess). With the exact extents it is 290 to 430 a frame, so the guess was part of it and the rest has a cause not found yet. ## NVIDIA Reflex (`VICTORY_REFLEX=on` or `boost`, F1 menu) - Reflex by itself, with or without frame generation. Each frame has its own token, used for the sleep and every marker; the token is carried through the title's own frame token, so submissions and the present find their frame by it. - **Where the sleep is.** The first version slept at the frame's origin wait. The runs showed the title reading its pad after the frame's first submission, nearly every frame in the world: what a frame submits right after that wait was simulated earlier, and the sleep there held back a finished frame instead of making input fresher. The sleep and `SimulationStart` / the input sample now happen at the reading that opens a simulation, and the next origin wait takes that frame's index. Frames with no reading to take (cutscenes, loading, menus that read rarely) sleep at the origin wait as before; an open simulation is let go only after four frame intervals. - A periodic line reports Reflex's own state; `docs/dlss.md` has the switch, the log lines and the limits. - Needs Streamline loaded (`VICTORY_DLSS=1` or `VICTORY_FRAMEGEN=1`). The rework is reviewed and unit-tested against the Streamline 2.14.16 headers and has not been run in the game yet. ## Streaming (all switches off by default, compiled only unless said) Measured first: in streaming frames the title's thread stood at its present for most of the frame, waiting for our submitting thread, which in turn waited for lists still being translated; the card was idle most of that time. Twelve changes came out of that, each behind its own switch and checked by a second reader before it was written: - `VICTORY_PIPELINE_WAIT_ONCE`: a wait for a host pipeline that cannot end inside the frame's budget is not begun. - `VICTORY_PIPELINE_WAIT_BACKLOG=n`: no waiting for host pipelines at all while more than `n` are queued (the wait could not be met anyway). - `VICTORY_PIPELINE_SLOW_WORKERS=n`: extra threads make the pipelines known to be slow while nothing is requested. - `VICTORY_TEXTURE_LOOK_ONCE`: a guarded texture nothing wrote is read whole at most once a frame; a line counts the second looks either way. - `VICTORY_TEXTURE_READ_AHEAD`: a list's texture uploads are read by threads of ours once the pass lets go of them, ahead of the submission. - `VICTORY_STAGING_NO_ZERO`: a staging piece the detiling writes whole is not zero-filled first. - `VICTORY_SEND_COPIED_FIND`: a title buffer copy finds the copies it touches by where they start, not by a walk. - `VICTORY_MEMORY_FRESH`: a new arena and the directory start with every page taken, so their zeros are not uploaded. - `VICTORY_MEMORY_ARENAS_AHEAD`: the next 64 MiB arena is made ahead on a thread of its own instead of under the module's mutex. - `VICTORY_MEMORY_QUIET`: a dispatch whose pages its list already named returns without the mutex (`check` counts what such calls would have done). - `VICTORY_MEMORY_LAND_SENT`, `VICTORY_MEMORY_ASK_RUNS`: landing stores reach the same submission's sends; a builder's root view on a held page is not asked about again, with the time split. - `VICTORY_FILES_BUFFERED`: the title's read-only package opens that bypass the system cache may read through it. - `VICTORY_DSTORAGE_STATS`: one summary line for DirectStorage (requests, megabytes, workers, the longest wait). - `VICTORY_MEMORY_FAULT_PAGES=n`: the run's budget of pages taken from faults can be raised (it was 2,048, spent within minutes with ray tracing on); a page found empty inside a structure the builder's calls named is placed whole outside the budgets. ## Submit thread and memory by address (off by default, compiled and unit-tested) From the ray-tracing run's split of the submitting thread (62.8 ms a frame: 11.3 asking the write watch, 30.5 in the lists' steps, 6.0 card copies, the rest planning, waiting and sending): - `VICTORY_MEMORY_DIRTY`: arena pages are written only by this module, so it notes them and a submission brings up only the written runs, instead of asking the kernel about every arena (about 23 of them, 0.3 ms each, every frame). - `VICTORY_MEMORY_LEAN`: pages already placed are not asked about again, and new ones are asked about before the mutex is taken, with a per-frame cache of refusals. - `VICTORY_MEMORY_BUFFER_FAULTS`: a page found empty that lies whole in a title buffer gets a place outside the budgets. A new line says, in nine kinds, why `map` refused each page. - `VICTORY_REFRESH_PROBE_US=us`: a small flush of refreshes is done on the submitting thread for that long before the rest is handed to the kept threads (each hand-over costs a wake and a wait). - `VICTORY_DECLARE_ACROSS_LISTS`: a range shaders write is declared once per submission, not once per list. - The card steps' line counts why a step was refused, by reason. - Pipeline library: pipelines whose root signature has static samplers no longer go through the library (the driver bakes the samplers' places into the compiled pipeline, so a stored one can come back wrong); `VICTORY_LIBRARY_STATIC_SAMPLERS=1` keeps the old behaviour. Samplers as a table instead (`VICTORY_PIPELINE_SAMPLER_TABLE=1`) make those pipelines storable again; the launcher now sets it (above). ## On screen - Under the frame-rate line, `SHADERS: n` while host pipelines are still being made, so a slow area is visibly the pipeline queue. ## Display - **`VICTORY_DISPLAY_WIDE=WxH` (not run yet).** With the 1440p output patch, the display mode is patched to a wider size (5120x1440 for 32:9) instead of 2560x1440, so that the title's own camera, culling and motion vectors are made for the wide picture. Height stays 1440; the width is a multiple of 8 from 2560 to 7680. The patched image goes to a cache folder of its own. Tests run against the retail image when `VICTORY_DISPLAY_PROFILE_TEST_IMAGE` names it. - **`VICTORY_ASPECT` and `VICTORY_UI_LETTERBOX`** (earlier local work, included as it was): the first widens standalone projection matrices in the copy on its way to the card; the second fits the interface plane in the two-plane composer. Limits, from reading the code: the first changes no resolution and does not reach matrices the title derives on the CPU; the second only acts on the Series S two-plane path. The display-mode patch above is meant to replace the first. ## Not behind a switch - **Game speed under the launcher's frame cap.** The title's read of its rate setting was only patched when `VICTORY_FRAME_INTERVAL_MS` was set; the launcher sets `VICTORY_FRAME_INTERVAL_US`, so the title kept its 30 Hz step floor while frames came faster. Both variables now count. The log line confirms 3 of 3 sites patched in the runs here; that the speed is right at high frame rates was not checked by eye. - **`lib.rs`**: `mod ambient` and `mod aspect` each get their own `cfg(windows)`. - **`scripts/get-nvidia-sdks.ps1`**: fetches only the files that are missing (a running game holds the loaded ones), and `-RayReconstruction` also fetches the two DLSS Ray Reconstruction files. Nothing uses them yet. ## Diagnostics - **`VICTORY_PIPELINE_DUMP=<folder>`** writes what the two unimplemented pipeline creation methods (device slots 0x1c8 and 0x218) were given, for the first calls of each, so that they can be written. The folder must be outside the repository. - F1 menu: an item for `VICTORY_RT_NATIVE`. ## Documents - `AGENTS.md`: rules for people and coding agents changing this code (where the bytes are, one move per byte, nothing long on the title's threads, switches, measuring). - `docs/broadside-format.md`: the structures' formats with where each fact lives in the tree, the builder's interface, and what the runs showed. ## Background: how the title traces rays Short form of `docs/broadside-format.md`, for reading the ray-tracing part above. - The title keeps its acceleration structures in plain title memory and walks them in its own compute programs. The only GPU help is one instruction that tests a ray against one node; the stack, instance transforms and hit logic are the program's code. The tree already lowers that node test to DXIL arithmetic, with a CPU reference that matches it. - Structures are built by the console's builder library, which the title calls through seven functions of a DXR-shaped class. Its programs are compute shaders (53 host pipelines in the runs here). - The static world's structures ship packed and are unpacked in place on the GPU, once. Dynamic ones are built every frame or refitted, their compacted size is stored into a small title buffer, and the title copies each to a place of that size. - What this change adds is the seam: with `VICTORY_RT_NATIVE=1` those seven calls pass through the layer, where they can be measured now and replaced one by one later. ## Next (follow-up PR) - **A ray-tracing renderer of our own.** Hardware acceleration structures are built from the geometry the title gives its builder, and the title's traversal loops become inline ray queries on the RTX cores. This replaces the translated console builder, which takes 76-123 ms of GPU a frame today. Designs for this, and for a builder in the console's own format, are being judged. - **DLSS Ray Reconstruction drawing.** The G-buffer guides are tagged and RR is evaluated in place of super resolution, which stays as the fallback. - **Compute pipelines from pieces.** The root-parameter layout built for them is wrong: 68% fail on "an address not from a root parameter", and some translate to wrong bindings. - **Translator gaps on pieces:** partial-channel stores, pixel system inputs, two-term addresses. - **The compacted-size race** (`memory.rs`, `sizes_wait`). ## Checks - **Builds and tests:** - `cargo check -p victory-gpu -p victory-hle -p victory-loader -p victory --locked`; - `cargo test -p victory-shader --lib` (311 passed); - the touched modules' tests: `victory-gpu` (`sets`, `shadow`, `send_thread`, `lean`, `watch`, `pipeline`, `pieces`, `streamline`, `draw`, `compose`), `victory-hle` `bvh_builder`, `victory` `native_1440p` and `victory-loader` `frame_rate`. - **Runs in the game with `-Fast`:** menus readable, the world drawn, no device loss. The frame rates above come from the log's periodic lines in the open world, counting lines with more than 3,000 draws a frame. - **Ray tracing:** runs with `VICTORY_RT_NATIVE=1` play in the world without errors, at 5-8 fps. - **Reflex:** unit-tested against the Streamline 2.14.16 headers; not measured in the game yet. Nothing derived from the game is in the change (`docs/asset-policy.md`).
Kemerd commented 2026-11-27 06:57:48 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Kemerd on 2026-11-27T06:57:48Z.


Planning on getting DLSS 5 NG working too, soon..

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7212010185 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/18#issuecomment-7212010185). Originally posted by [Kemerd](https://github.com/Kemerd) on 2026-11-27T06:57:48Z. --- Planning on getting DLSS 5 NG working too, soon..
Kemerd commented 2026-11-27 08:33:40 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Kemerd on 2026-11-27T08:33:40Z.


Almost got this in a workable state, should be ready to be reviewed soon, getting some promising performance gains

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7213668735 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/18#issuecomment-7213668735). Originally posted by [Kemerd](https://github.com/Kemerd) on 2026-11-27T08:33:40Z. --- Almost got this in a workable state, should be ready to be reviewed soon, getting some promising performance gains
Kemerd commented 2026-11-27 09:27:59 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Kemerd on 2026-11-27T09:27:59Z.


Best run at 29.4 FPS, still fixing a few more things

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7214713724 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/18#issuecomment-7214713724). Originally posted by [Kemerd](https://github.com/Kemerd) on 2026-11-27T09:27:59Z. --- Best run at 29.4 FPS, still fixing a few more things
VivaLaVent commented 2026-11-27 09:52:30 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by VivaLaVent on 2026-11-27T09:52:30Z.


Holy

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7215199505 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/18#issuecomment-7215199505). Originally posted by [VivaLaVent](https://github.com/VivaLaVent) on 2026-11-27T09:52:30Z. --- Holy
Kemerd commented 2026-11-27 09:54:08 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Kemerd on 2026-11-27T09:54:08Z.


Yeah let's just say I like CPU/GPU thought experiments.

PR is ready to be merged in.

  • Results (open world, RT off, before → -Fast): median 11.8 → 21.9 fps, best 18.3 → 31.9 fps (31.3 ms). Loading no longer rebuilds ~1,100 pipelines every run.
  • Ray tracing works but tanks fps (5–8 fps, 42–105 ms of GPU in the translated console builder). It's off by default, and the fix (our own RTX renderer + Ray Reconstruction drawing) is in a follow-up PR
  • Pieces (never worse than off, graphics only for now), parallel submit, the sampler-table loading fix, 32:9, HDR10, and RR loading plus finding the G-buffer.
  • -Fast now turns on pieces for graphics with the refusal, and all the parallel-submit switches. RT native stays off.

Will be working on the other stuff, but you can get 30 FPS at 1440P at least now (with no frame gen on). Frame gen of course will let you get more.

Still fixing a crash with 32:9 and HDR but that should be in soon. Will be separate PR.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7215232896 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/18#issuecomment-7215232896). Originally posted by [Kemerd](https://github.com/Kemerd) on 2026-11-27T09:54:08Z. --- Yeah let's just say I like CPU/GPU thought experiments. PR is ready to be merged in. - Results (open world, RT off, before → -Fast): median 11.8 → 21.9 fps, best 18.3 → 31.9 fps (31.3 ms). Loading no longer rebuilds ~1,100 pipelines every run. - Ray tracing works but tanks fps (5–8 fps, 42–105 ms of GPU in the translated console builder). It's off by default, and the fix (our own RTX renderer + Ray Reconstruction drawing) is in a follow-up PR - Pieces (never worse than off, graphics only for now), parallel submit, the sampler-table loading fix, 32:9, HDR10, and RR loading plus finding the G-buffer. - -Fast now turns on pieces for graphics with the refusal, and all the parallel-submit switches. RT native stays off. Will be working on the other stuff, but you can get 30 FPS at 1440P at least now (with no frame gen on). Frame gen of course will let you get more. Still fixing a crash with 32:9 and HDR but that should be in soon. Will be separate PR.
Kemerd commented 2026-11-27 09:54:45 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Kemerd on 2026-11-27T09:54:45Z.


And one sec, fixing the merge conflicts

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7215245596 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/18#issuecomment-7215245596). Originally posted by [Kemerd](https://github.com/Kemerd) on 2026-11-27T09:54:45Z. --- And one sec, fixing the merge conflicts
Kemerd commented 2026-11-27 09:55:58 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Kemerd on 2026-11-27T09:55:58Z.


Should be ready to rock now, probably will finish up the other stuff tonight or tomorrow.. the ultimate goal being getting native DLSS 5 with Neural Rendering working

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7215270316 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/18#issuecomment-7215270316). Originally posted by [Kemerd](https://github.com/Kemerd) on 2026-11-27T09:55:58Z. --- Should be ready to rock now, probably will finish up the other stuff tonight or tomorrow.. the ultimate goal being getting native DLSS 5 with Neural Rendering working
Kemerd commented 2026-11-27 10:14:34 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Kemerd on 2026-11-27T10:14:34Z.


32:9 working now

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7215646750 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/18#issuecomment-7215646750). Originally posted by [Kemerd](https://github.com/Kemerd) on 2026-11-27T10:14:34Z. --- 32:9 working now
toothpaste011 commented 2026-11-27 10:26:54 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by toothpaste011 on 2026-11-27T10:26:54Z.


Been testing -Fast up to 3c33c717 on a 5070 Ti (16 GB, Series X 1440p, DLSS Quality, diag build, RT off). Runs clean with zero errors (~14-18 fps at 7.5k-10.5k draws), VICTORY_PIPELINE_SAMPLER_TABLE=1 loaded 2,895 pipelines from the library on run 2, and graphics-only PIECES + REFUSE_UNTRANSLATED=1 fixed the dropped draws from earlier.

Ran into three bugs while testing that might be worth fixing before merge:

  1. VICTORY_SEND_THREAD=1 rubberbanding (old frames flashing back in)
    With -Fast on, frames kept snapping back to an older frame and then jumping forward again. Setting VICTORY_SEND_THREAD=0 stopped it immediately.
    Host::present (crates/victory-gpu/src/host.rs:10521) hands the back-buffer copy list to victory-send via self.execute_own(copy), then calls p.swap_chain.Present(0, DXGI_PRESENT(0)) at line 10566 without calling send_thread::wait_idle() first. Present() can beat copy onto self.queue and flip a stale back buffer. Draining victory-send right after execute_own(copy) fixes the ordering (tested across multiple runs, 0 out-of-order sends and rubberbanding is gone):

                 let flown = match slot {
                     Some(i) => {
                         let flown = self.execute_own(copy);
    +                    send_thread::wait_idle();
                         p.ahead[i].1 = flown;
                         flown
                     }
    
  2. VICTORY_TITLE_WRITE_RANGE_CHECK=1 false positives (updated)
    Ran -Fast with VICTORY_TITLE_WRITE_RANGE_CHECK=1 and VICTORY_REFRESH_SET_CHECK=1 for ~3 minutes:

    • VICTORY_REFRESH_SET_CHECK=1: 0 mismatches
    • VICTORY_TITLE_WRITE_RANGE_CHECK=1: 16,384+ violations (~5-21/frame, e.g. a refresh of copy 1 over 0x2a660000..0x35460000 was kept by a title write and the write then noted pages of it).
    • Update: dug into those violations and VICTORY_TITLE_WRITE_RANGE=1 itself wasn't dropping pages, it was a false positive in Batch::kept_checked(). Logged 26 gameplay hits (64+ violations): 24/26 had PUBLISHED cleared on an unrelated copy by another thread (title CPU fault, DirectStorage, xmem remap, or victory-relay) between title_written() and kept_checked(), and 2/26 had a journal write from a concurrent victory-relay landed_beside call under a different asking number. Recording only the 64 KiB pages opened (watch::open) or noted (watch::wrote) on the submitting thread (plus computing watch::written_ranges(dst, len) after self.flush(by) so aliases mapped during the flush are included) brought VICTORY_TITLE_WRITE_RANGE_CHECK=1 down to 0 violations over an 85s gameplay run (35k-44k refreshes/frame kept standing, 0 errors).
  3. xtask policy failure in known.rs:628
    cargo run -p xtask -- policy fails on a literal raw NUL byte in crates/victory-gpu/src/pipeline/known.rs:628 (binary content (NUL bytes)) instead of \0:

    -        let named = stock_with([0x33; 16], b"..CS_ScreenProbes_ActivateRays ");
    +        let named = stock_with([0x33; 16], b"..CS_ScreenProbes_ActivateRays\0");
    

Note: these commits were cherry-picked onto my local branch (DualSense HID + a few small descriptor/remap fixes), so it's not a pure stock checkout.

Also makes sense keeping RT off by default for now. On earlier VICTORY_GPU_TIMING=1 + VICTORY_D3D12_DRED=1 runs the trace pass (f22a76fcb967ee59) sat around ~53 ms/frame steady on a 5070 Ti, though -Fast did get rid of the 1.5-2.2 s builder spikes we were seeing before. Let me know if you want logs or a VICTORY_RR_TARGETS=1 dump from a 5070 Ti.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7215896420 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/18#issuecomment-7215896420). Originally posted by [toothpaste011](https://github.com/toothpaste011) on 2026-11-27T10:26:54Z. --- Been testing `-Fast` up to `3c33c717` on a 5070 Ti (16 GB, Series X 1440p, DLSS Quality, diag build, RT off). Runs clean with zero errors (~14-18 fps at 7.5k-10.5k draws), `VICTORY_PIPELINE_SAMPLER_TABLE=1` loaded 2,895 pipelines from the library on run 2, and graphics-only `PIECES` + `REFUSE_UNTRANSLATED=1` fixed the dropped draws from earlier. Ran into three bugs while testing that might be worth fixing before merge: 1. **`VICTORY_SEND_THREAD=1` rubberbanding (old frames flashing back in)** With `-Fast` on, frames kept snapping back to an older frame and then jumping forward again. Setting `VICTORY_SEND_THREAD=0` stopped it immediately. `Host::present` (`crates/victory-gpu/src/host.rs:10521`) hands the back-buffer `copy` list to `victory-send` via `self.execute_own(copy)`, then calls `p.swap_chain.Present(0, DXGI_PRESENT(0))` at line 10566 without calling `send_thread::wait_idle()` first. `Present()` can beat `copy` onto `self.queue` and flip a stale back buffer. Draining `victory-send` right after `execute_own(copy)` fixes the ordering (tested across multiple runs, 0 out-of-order sends and rubberbanding is gone): ```diff let flown = match slot { Some(i) => { let flown = self.execute_own(copy); + send_thread::wait_idle(); p.ahead[i].1 = flown; flown } ``` 2. **`VICTORY_TITLE_WRITE_RANGE_CHECK=1` false positives (updated)** Ran `-Fast` with `VICTORY_TITLE_WRITE_RANGE_CHECK=1` and `VICTORY_REFRESH_SET_CHECK=1` for ~3 minutes: - `VICTORY_REFRESH_SET_CHECK=1`: **0 mismatches** - `VICTORY_TITLE_WRITE_RANGE_CHECK=1`: **16,384+ violations** (~5-21/frame, e.g. `a refresh of copy 1 over 0x2a660000..0x35460000 was kept by a title write and the write then noted pages of it`). - **Update:** dug into those violations and `VICTORY_TITLE_WRITE_RANGE=1` itself wasn't dropping pages, it was a false positive in `Batch::kept_checked()`. Logged 26 gameplay hits (64+ violations): 24/26 had `PUBLISHED` cleared on an unrelated copy by another thread (title CPU fault, DirectStorage, xmem remap, or `victory-relay`) between `title_written()` and `kept_checked()`, and 2/26 had a journal write from a concurrent `victory-relay` `landed_beside` call under a different asking number. Recording only the 64 KiB pages opened (`watch::open`) or noted (`watch::wrote`) on the submitting thread (plus computing `watch::written_ranges(dst, len)` after `self.flush(by)` so aliases mapped during the flush are included) brought `VICTORY_TITLE_WRITE_RANGE_CHECK=1` down to **0 violations** over an 85s gameplay run (35k-44k refreshes/frame kept standing, 0 errors). 3. **`xtask policy` failure in `known.rs:628`** `cargo run -p xtask -- policy` fails on a literal raw NUL byte in `crates/victory-gpu/src/pipeline/known.rs:628` (`binary content (NUL bytes)`) instead of `\0`: ```diff - let named = stock_with([0x33; 16], b"..CS_ScreenProbes_ActivateRays "); + let named = stock_with([0x33; 16], b"..CS_ScreenProbes_ActivateRays\0"); ``` Note: these commits were cherry-picked onto my local branch (DualSense HID + a few small descriptor/remap fixes), so it's not a pure stock checkout. Also makes sense keeping RT off by default for now. On earlier `VICTORY_GPU_TIMING=1` + `VICTORY_D3D12_DRED=1` runs the trace pass (`f22a76fcb967ee59`) sat around ~53 ms/frame steady on a 5070 Ti, though `-Fast` did get rid of the 1.5-2.2 s builder spikes we were seeing before. Let me know if you want logs or a `VICTORY_RR_TARGETS=1` dump from a 5070 Ti.
TricksterG commented 2026-11-27 12:11:51 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by TricksterG on 2026-11-27T12:11:51Z.


Crash with DLSS on RTX 5090: D3D12 XDXR Error: Failed to allocate upload buffer as soon as NVIDIA NGX is in the process

Hi Kemerd, thanks for the work on PR #18 and VIctory-NVIDIA-RT. I can't get DLSS to run on my PC, and I narrowed it down quite far. Issues are disabled on your fork, so I'm posting here.

System

  • RTX 5090 32 GB, driver 621.40, Resizable BAR on, HAGS on
  • Ryzen 7 9800X3D, 32 GB RAM (page file 64–128 GB)
  • Windows 11 26H2, build 26300.9974
  • Streamline v2.14.16 / DLSS 310.9.16 (from Get-NVIDIA-DLSS.cmd, NVIDIA-signed)

Symptom
~50 s after loading, at the very first in-world frame, about 20 ms after the title's first ffxDispatch:

title: D3D12 XDXR Error:
title: Failed to allocate upload buffer
VIctory: unhandled exception 0xe06d7363 at KERNELBASE.dll+0xc569a (C++ .J = 0x80004005 thrown)

Same crash on

  • VIctory-NVIDIA (48ad785, 18a8dc2), PR #18 (5762170), VIctory-NVIDIA-RT (c36a7d6, -Fast, also with VICTORY_DISPLAY_WIDE=2560x1440 to enable the upload reservation from 3c33c71), VIctory-DLSS-GDeflate (1197dd6)
  • Series X and Series S, DLSS Quality and DLAA, with and without frame generation (-NoFrameGenReady)
  • with all overlays closed (RTSS/Afterburner, Discord)
  • and on a different layer (cool_fox 30e54b4) with OptiScaler 0.9.5 set to DLSS, so without Streamline at all

What does NOT crash

  • Every build without DLSS (10–20+ minute runs)
  • VICTORY_FSR_PATH=1 -SeriesS -Dlss off (title's FidelityFX renderer path, no Streamline): stable
  • cool_fox with the PC FSR DLL (no NGX): stable 21 min

Bisect inside the DLSS path (local test switch in streamline::upscale)

  • Taken::No before list::external (nothing recorded, title's own FidelityFX runs): still crashes
  • recorded but no DLSS evaluation: still crashes
  • running the title's own ffxDispatch first, then DLSS: still crashes

Other notes

  • No allocate_upload: no room warning in the RT build's log, so the layer's upload memory is fine; the failing buffer seems to be the title's own.
  • Streamline's own verbose log (VICTORY_STREAMLINE_LOG) shows no errors; sl.dlss reports "has no registered hooks".
  • The title's crash report shows ~6–8 GB of free RAM at the crash, so it isn't system memory.

Conclusion
The crash appears whenever NVIDIA NGX is initialised in the process (via Streamline or via OptiScaler), regardless of whether DLSS ever evaluates. Maybe NGX initialisation on the device or its allocations take something the title's XDXR allocator expects later? Could this depend on Windows build 26300 / driver 621.40? Which Windows build and driver did you test on?

Happy to run test builds or send full logs.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7217953160 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/18#issuecomment-7217953160). Originally posted by [TricksterG](https://github.com/TricksterG) on 2026-11-27T12:11:51Z. --- **Crash with DLSS on RTX 5090: `D3D12 XDXR Error: Failed to allocate upload buffer` as soon as NVIDIA NGX is in the process** Hi Kemerd, thanks for the work on PR #18 and VIctory-NVIDIA-RT. I can't get DLSS to run on my PC, and I narrowed it down quite far. Issues are disabled on your fork, so I'm posting here. **System** - RTX 5090 32 GB, driver 621.40, Resizable BAR on, HAGS on - Ryzen 7 9800X3D, 32 GB RAM (page file 64–128 GB) - Windows 11 26H2, build 26300.9974 - Streamline v2.14.16 / DLSS 310.9.16 (from `Get-NVIDIA-DLSS.cmd`, NVIDIA-signed) **Symptom** ~50 s after loading, at the very first in-world frame, about 20 ms after the title's first `ffxDispatch`: title: D3D12 XDXR Error: title: Failed to allocate upload buffer VIctory: unhandled exception 0xe06d7363 at KERNELBASE.dll+0xc569a (C++ .J = 0x80004005 thrown) **Same crash on** - VIctory-NVIDIA (48ad785, 18a8dc2), PR #18 (5762170), VIctory-NVIDIA-RT (c36a7d6, `-Fast`, also with `VICTORY_DISPLAY_WIDE=2560x1440` to enable the upload reservation from 3c33c71), VIctory-DLSS-GDeflate (1197dd6) - Series X and Series S, DLSS Quality and DLAA, with and without frame generation (`-NoFrameGenReady`) - with all overlays closed (RTSS/Afterburner, Discord) - **and on a different layer (cool_fox 30e54b4) with OptiScaler 0.9.5 set to DLSS**, so without Streamline at all **What does NOT crash** - Every build without DLSS (10–20+ minute runs) - `VICTORY_FSR_PATH=1 -SeriesS -Dlss off` (title's FidelityFX renderer path, no Streamline): stable - cool_fox with the PC FSR DLL (no NGX): stable 21 min **Bisect inside the DLSS path (local test switch in `streamline::upscale`)** - `Taken::No` before `list::external` (nothing recorded, title's own FidelityFX runs): still crashes - recorded but no DLSS evaluation: still crashes - running the title's own `ffxDispatch` first, then DLSS: still crashes **Other notes** - No `allocate_upload: no room` warning in the RT build's log, so the layer's upload memory is fine; the failing buffer seems to be the title's own. - Streamline's own verbose log (`VICTORY_STREAMLINE_LOG`) shows no errors; `sl.dlss` reports "has no registered hooks". - The title's crash report shows ~6–8 GB of free RAM at the crash, so it isn't system memory. **Conclusion** The crash appears whenever NVIDIA NGX is initialised in the process (via Streamline or via OptiScaler), regardless of whether DLSS ever evaluates. Maybe NGX initialisation on the device or its allocations take something the title's XDXR allocator expects later? Could this depend on Windows build 26300 / driver 621.40? Which Windows build and driver did you test on? Happy to run test builds or send full logs.
k0ma2k15 commented 2026-11-27 12:18:38 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by k0ma2k15 on 2026-11-27T12:18:38Z.


Tested PR #18 on Windows 11, Ryzen 7 8845HS (8C/16T), NVIDIA GeForce RTX 4070 SUPER (USB4 eGPU), Series X 1440p DLSS Quality, release build with -Fast (two consecutive runs):

  • Stability & parallel submit: no crashes or device losses across both runs.
    • VICTORY_SEND_THREAD=1: ~16.1–16.3 jobs/frame, ~4.6–6.7 ms offloaded, 0 sent out of order.
    • VICTORY_REFRESH_SET=1: 0 mismatches (VICTORY_REFRESH_SET_CHECK=1).
    • VICTORY_TITLE_WRITE_RANGE=1: 0.0 violations.
  • Visual issue / pipeline backlog on -Fast:
    • Run 1: scene was blown out into bright white/orange blocky haze (subtitles rendered cleanly on top) while 1,058–1,503 host pipelines remained being made (574–1,360 draws/frame dropped without a host pipeline while VICTORY_PIPELINE_WAIT_ONCE=1 / VICTORY_PIPELINE_WAIT_BACKLOG=64 were active). Fullscreen draw 3x1x1 (topology 17, 2560x1440, formats 24 and 26) pipelines from pieces had both stages translated yet still logged a pipeline from pieces has no host pipeline, its draw is dropped.
    • Run 2 (after library saved made=759, loaded=1,516): sky and character silhouettes appeared, but heavy orange/white haze persisted with 627–684 pipelines still being made and 373–1,486 draws/frame dropped.
    • On the last two saves of Run 2, the library logged host pipeline library saved bytes=0 (early=3159 made=406..410 loaded=1516 bypass=328..332).
    • VICTORY_PIPELINE_PIECES (graphics) also logged 9 not made from its pieces reasons (SPI_SHADER_COL_FORMAT UNORM16_ABGR (5) & SNORM16_ABGR (6), DB_SHADER_CONTROL EXEC_ON_NOOP, SPI_PS_INPUT_CNTL FP16_INTERP_MODE, unhandled blend factor/function, extra slot +0x68, packet values at +0xac/+0xb0, input element word 0).
  • Performance on 8-core CPU while backlog compiles: 7.2–12.2 fps (81.9–138.1 ms/frame, preparing 66.9–90.9 ms) in Run 2 vs ~13.5–14.1 fps avg on main — likely VICTORY_PIPELINE_SLOW_WORKERS=8 saturating all 8 cores alongside the submitting thread.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7218089863 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/18#issuecomment-7218089863). Originally posted by [k0ma2k15](https://github.com/k0ma2k15) on 2026-11-27T12:18:38Z. --- Tested PR #18 on Windows 11, Ryzen 7 8845HS (8C/16T), NVIDIA GeForce RTX 4070 SUPER (USB4 eGPU), Series X 1440p DLSS Quality, `release` build with `-Fast` (two consecutive runs): - **Stability & parallel submit:** no crashes or device losses across both runs. - `VICTORY_SEND_THREAD=1`: ~16.1–16.3 jobs/frame, ~4.6–6.7 ms offloaded, `0` sent out of order. - `VICTORY_REFRESH_SET=1`: `0` mismatches (`VICTORY_REFRESH_SET_CHECK=1`). - `VICTORY_TITLE_WRITE_RANGE=1`: `0.0` violations. - **Visual issue / pipeline backlog on `-Fast`:** - Run 1: scene was blown out into bright white/orange blocky haze (subtitles rendered cleanly on top) while `1,058–1,503` host pipelines remained `being made` (`574–1,360` draws/frame dropped without a host pipeline while `VICTORY_PIPELINE_WAIT_ONCE=1` / `VICTORY_PIPELINE_WAIT_BACKLOG=64` were active). Fullscreen `draw 3x1x1` (`topology 17`, `2560x1440`, formats `24` and `26`) pipelines from pieces had both stages translated yet still logged `a pipeline from pieces has no host pipeline, its draw is dropped`. - Run 2 (after library saved `made=759`, `loaded=1,516`): sky and character silhouettes appeared, but heavy orange/white haze persisted with `627–684` pipelines still `being made` and `373–1,486` draws/frame dropped. - On the last two saves of Run 2, the library logged `host pipeline library saved bytes=0` (`early=3159 made=406..410 loaded=1516 bypass=328..332`). - `VICTORY_PIPELINE_PIECES` (`graphics`) also logged 9 `not made from its pieces` reasons (`SPI_SHADER_COL_FORMAT` `UNORM16_ABGR (5)` & `SNORM16_ABGR (6)`, `DB_SHADER_CONTROL EXEC_ON_NOOP`, `SPI_PS_INPUT_CNTL FP16_INTERP_MODE`, unhandled blend factor/function, extra slot `+0x68`, packet values at `+0xac`/`+0xb0`, input element word 0). - **Performance on 8-core CPU while backlog compiles:** `7.2–12.2 fps` (`81.9–138.1 ms/frame`, `preparing` `66.9–90.9 ms`) in Run 2 vs `~13.5–14.1 fps` avg on `main` — likely `VICTORY_PIPELINE_SLOW_WORKERS=8` saturating all 8 cores alongside the submitting thread.
LucaruluDev commented 2026-11-27 12:38:05 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by LucaruluDev on 2026-11-27T12:38:05Z.


Additional performance data — RTX 5070 / Ryzen 7 9700X / 32 GiB RAM

I'm sharing some independent performance observations from four Foxhound sessions that may be useful for the ongoing submission and GPU scheduling work.

Hardware and configuration

Component Specification
CPU Ryzen 7 9700X (8C/16T)
GPU RTX 5070 12 GB
RAM 32 GiB DDR5-5600
OS Windows 11 Home, build 26300
Driver NVIDIA 621.24
Profile Series X / Release
Output 2560x1440 SDR
Frame Generation Disabled

Code reference: 9341f4316f0265786a95a6791a428f14d5695cb1

Performance overview

149,171 log lines, 490 periodic FPS samples and 2,437 submission/GPU queue samples.

Session DLSS Duration Median FPS p95 (ms) Worst (ms)
1 Quality 2m 05s 30.00 324.9 499.9
2 Off 29m 12s 19.25 175.9 529.7
3 Quality 3m 19s 19.20 118.4 4797.2
4 Quality 8m 44s 19.45 135.1 383.5

Frame-time statistics refer to periodic window means, not individual frames.

Submission and GPU queue

Median values in ms/frame:

Session Submission Buffer refresh Queue idle during host work
DLSS Off 45.4 12.9 11.7
Quality (session 3) 45.0 14.5 13.1
Quality (session 4) 45.7 14.9 16.5

These measurements overlap and should not be added together.

Memory pressure

  • Peak observed local memory usage: 11,480 MiB.
  • Corresponding DXGI budget: 10,338 MiB.
  • Local usage exceeded the dynamic budget in 12 of 19 samples during the longest session.
  • Texture admissions were blocked in 93 of 336 periodic samples.

Other observations

  • The worst logged window reached 4797.2 ms/frame with zero pipelines pending.
  • All three DLSS Quality sessions reported the missing Streamline presentCommon() diagnostic, already addressed in Marvisak/VIctory#1704.
  • Severe overexposure and color artifacts were also observed with DLSS disabled.
Methodology and limitations

These are observational sessions, not a controlled DLSS A/B benchmark.

Scene content, internal resolution, pipeline cache state and session duration differed. Startup and low-draw phases are included.

The queue clock measures this process's monitored queue, not whole-device GPU utilization.

The logs do not independently certify the executable revision for each session.

No causal relationship between individual logged errors and rendering artifacts has been established.

Supporting graphs and data

frame-times submission-and-gpu memory-headroom

metrics.csv

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7218489889 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/18#issuecomment-7218489889). Originally posted by [LucaruluDev](https://github.com/LucaruluDev) on 2026-11-27T12:38:05Z. --- ## Additional performance data — RTX 5070 / Ryzen 7 9700X / 32 GiB RAM I'm sharing some independent performance observations from four Foxhound sessions that may be useful for the ongoing submission and GPU scheduling work. ### Hardware and configuration | Component | Specification | |---|---| | CPU | Ryzen 7 9700X (8C/16T) | | GPU | RTX 5070 12 GB | | RAM | 32 GiB DDR5-5600 | | OS | Windows 11 Home, build 26300 | | Driver | NVIDIA 621.24 | | Profile | Series X / Release | | Output | 2560x1440 SDR | | Frame Generation | Disabled | Code reference: `9341f4316f0265786a95a6791a428f14d5695cb1` ### Performance overview 149,171 log lines, 490 periodic FPS samples and 2,437 submission/GPU queue samples. | Session | DLSS | Duration | Median FPS | p95 (ms) | Worst (ms) | |---|---|---:|---:|---:|---:| | 1 | Quality | 2m 05s | 30.00 | 324.9 | 499.9 | | 2 | Off | 29m 12s | 19.25 | 175.9 | 529.7 | | 3 | Quality | 3m 19s | 19.20 | 118.4 | 4797.2 | | 4 | Quality | 8m 44s | 19.45 | 135.1 | 383.5 | Frame-time statistics refer to periodic window means, not individual frames. ### Submission and GPU queue Median values in ms/frame: | Session | Submission | Buffer refresh | Queue idle during host work | |---|---:|---:|---:| | DLSS Off | 45.4 | 12.9 | 11.7 | | Quality (session 3) | 45.0 | 14.5 | 13.1 | | Quality (session 4) | 45.7 | 14.9 | 16.5 | These measurements overlap and should not be added together. ### Memory pressure - Peak observed local memory usage: 11,480 MiB. - Corresponding DXGI budget: 10,338 MiB. - Local usage exceeded the dynamic budget in 12 of 19 samples during the longest session. - Texture admissions were blocked in 93 of 336 periodic samples. ### Other observations - The worst logged window reached 4797.2 ms/frame with zero pipelines pending. - All three DLSS Quality sessions reported the missing Streamline `presentCommon()` diagnostic, already addressed in Marvisak/VIctory#1704. - Severe overexposure and color artifacts were also observed with DLSS disabled. <details> <summary>Methodology and limitations</summary> These are observational sessions, not a controlled DLSS A/B benchmark. Scene content, internal resolution, pipeline cache state and session duration differed. Startup and low-draw phases are included. The queue clock measures this process's monitored queue, not whole-device GPU utilization. The logs do not independently certify the executable revision for each session. No causal relationship between individual logged errors and rendering artifacts has been established. </details> ### Supporting graphs and data <img width="1100" height="960" alt="frame-times" src="https://github.com/user-attachments/assets/5296fc1b-fa48-4fa9-afdc-28be4fe26091" /> <img width="1100" height="960" alt="submission-and-gpu" src="https://github.com/user-attachments/assets/bd9dcaaa-2adb-44fd-9a29-fa983dd60a62" /> <img width="1100" height="960" alt="memory-headroom" src="https://github.com/user-attachments/assets/03f26084-7147-4096-9354-d1afa5886a2e" /> [metrics.csv](https://github.com/user-attachments/files/35512855/metrics.csv)
JRamos1993 commented 2026-11-27 15:19:26 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by JRamos1993 on 2026-11-27T15:19:26Z.


Test report from an RTX 5090 (driver 621.24, Windows 11 build 26200), on a 5120x1440 (32:9) screen.

Setup. e0703c1, release build, victory play with the -Fast switches of play-foxhound.ps1 passed as --set (including VICTORY_PIPELINE_SAMPLER_TABLE=1). DLSS Quality, frame generation not made ready, VICTORY_INDIRECT_WINDOW=0. Pipelines were made ahead with victory warm --used (2,335). The save and scripted keys were the same in every run, with medians taken from 120 s in. All runs were in the opening scenes.

main d12eb1b this PR, -Fast, 16:9 this PR, -Fast, --res wide (32:9)
frame rate, median (p10 / p90) 26 (15 / 33) 26 (16 / 29) 24 (22 / 26)
frame time, median 41.5 ms 39.4 ms 42.0 ms
submitting thread preparing, median 30.5 ms 27.8 ms 32.7 ms
card busy, by the log's own count 74 % 90 % 90 %
  • 32:9 works here. The picture fills the whole 5120x1440 window (scene 3413x960 through DLSS Quality) and costs only about 2 fps against 16:9. The 32:9 run stayed in a cutscene, so I have not checked the 16:9 interface band in gameplay yet.
  • -Fast on current main takes about 3 ms off the submitting thread on this machine, but the median frame rate stays the same here: the card is now the busier side.
  • No crash or device loss in these runs with DLSS on. That is three runs of this PR (one 16:9, two 32:9) of 5-7 minutes each, so the upload-buffer crash reported above did not show up here.
  • The 32:9 run logged host view heap capped at 1000000; views past it read a null slot count=1245184 once. Nothing looked wrong in the captures.
  • Unrelated to this PR: the first 32:9 run of e0703c1 showed a white window for the whole run, while the log reported about 25 fps. The swap chain had gone to the process's 0x0 PseudoConsoleWindow. #49 fixes that and applies cleanly on top of this branch. The 32:9 figures above are from a build with it.

Tested with Claude Code (Claude Opus 5.5) on my PC.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7221914169 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/18#issuecomment-7221914169). Originally posted by [JRamos1993](https://github.com/JRamos1993) on 2026-11-27T15:19:26Z. --- Test report from an RTX 5090 (driver 621.24, Windows 11 build 26200), on a 5120x1440 (32:9) screen. **Setup.** e0703c1, release build, `victory play` with the `-Fast` switches of `play-foxhound.ps1` passed as `--set` (including `VICTORY_PIPELINE_SAMPLER_TABLE=1`). DLSS Quality, frame generation not made ready, `VICTORY_INDIRECT_WINDOW=0`. Pipelines were made ahead with `victory warm --used` (2,335). The save and scripted keys were the same in every run, with medians taken from 120 s in. All runs were in the opening scenes. | | main d12eb1b | this PR, `-Fast`, 16:9 | this PR, `-Fast`, `--res wide` (32:9) | |---|---|---|---| | frame rate, median (p10 / p90) | 26 (15 / 33) | 26 (16 / 29) | 24 (22 / 26) | | frame time, median | 41.5 ms | 39.4 ms | 42.0 ms | | submitting thread preparing, median | 30.5 ms | 27.8 ms | 32.7 ms | | card busy, by the log's own count | 74 % | 90 % | 90 % | - **32:9 works here.** The picture fills the whole 5120x1440 window (scene 3413x960 through DLSS Quality) and costs only about 2 fps against 16:9. The 32:9 run stayed in a cutscene, so I have not checked the 16:9 interface band in gameplay yet. - **`-Fast` on current main** takes about 3 ms off the submitting thread on this machine, but the median frame rate stays the same here: the card is now the busier side. - No crash or device loss in these runs with DLSS on. That is three runs of this PR (one 16:9, two 32:9) of 5-7 minutes each, so the upload-buffer crash reported above did not show up here. - The 32:9 run logged `host view heap capped at 1000000; views past it read a null slot count=1245184` once. Nothing looked wrong in the captures. - **Unrelated to this PR:** the first 32:9 run of e0703c1 showed a white window for the whole run, while the log reported about 25 fps. The swap chain had gone to the process's 0x0 `PseudoConsoleWindow`. #49 fixes that and applies cleanly on top of this branch. The 32:9 figures above are from a build with it. Tested with Claude Code (Claude Opus 5.5) on my PC.
SwearCate commented 2026-11-27 20:30:28 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by SwearCate on 2026-11-27T20:30:28Z.


I don't know how, but your fork with my computer works in 15-17 fps, but main build is working in 3 fps
Keep doing it pls

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7227571679 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/18#issuecomment-7227571679). Originally posted by [SwearCate](https://github.com/SwearCate) on 2026-11-27T20:30:28Z. --- I don't know how, but your fork with my computer works in 15-17 fps, but main build is working in 3 fps Keep doing it pls
eleboucher commented 2026-11-27 20:46:45 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by eleboucher on 2026-11-27T20:46:45Z.


Translator fixes for the pipelines-from-pieces path, made on top of this PR's head (e0703c1): Kemerd/VIctory-NVIDIA-RT#7. On an RTX 4070 Ti SUPER they take the pipelines made in the opening from about 3,600 to 11,260 of 16,384 (cell about 19 → 30 fps).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7227831343 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/18#issuecomment-7227831343). Originally posted by [eleboucher](https://github.com/eleboucher) on 2026-11-27T20:46:45Z. --- Translator fixes for the pipelines-from-pieces path, made on top of this PR's head (`e0703c1`): Kemerd/VIctory-NVIDIA-RT#7. On an RTX 4070 Ti SUPER they take the pipelines made in the opening from about 3,600 to 11,260 of 16,384 (cell about 19 → 30 fps).
Kemerd commented 2026-11-27 21:19:47 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Kemerd on 2026-11-27T21:19:47Z.


Would be nice to see this merged in

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7228345367 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/18#issuecomment-7228345367). Originally posted by [Kemerd](https://github.com/Kemerd) on 2026-11-27T21:19:47Z. --- Would be nice to see this merged in
Smoodie7 commented 2026-11-27 23:21:16 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Smoodie7 on 2026-11-27T23:21:16Z.


Test report: this PR merged with main (df2daaf), RTX 4070 Ti SUPER 16 GB

I merged this branch with the current main (one commit behind, no conflicts), built it from source (cargo build --release --locked -p victory, MSVC toolchain) and played three sessions with scripts\play-foxhound.ps1 -Fast -Dlss quality -FrameGen -FgType dlss (Series X profile, native 2560x1440, DLSS renders 1706x960, DLSS frame generation 2x, ray tracing off). Story save, interiors and streets.

PC: RTX 4070 Ti SUPER 16 GB (driver 621.40), Ryzen 7 7700 (8C/16T), 32 GB, Windows 11 Pro 26300.

Performance: it runs well and is playable

Session Length Rendered FPS (median / p10) ms a frame CPU preparing Draws a frame Dropped without a host pipeline Crash
-Fast 37 min 17.3 / 12.1 57.7 42.4 7,238 303 none
-Fast + VICTORY_AMBIENT_ONCE=1 15 min 15.8 / 12.9 63.5 42.2 7,440 302 none

With frame generation that is about 33-35 FPS shown (the title bar read "18 fps (frame gen 35 fps)"). Samples are taken once no pipeline is being made and with more than 1,000 draws; the two sessions were in different places, so the gap between them is the scene, not the switch.

Where the submitting thread's 51 ms go (a typical line): lists' steps 24.2 ms, of which refreshes 16.4 ms in 25 flushes of 5,887 (4,909 known to copy nothing); copies in the card's memory 8.4; planning steps on the card 7.1; asking the write watch 5.5; putting the title's bytes under flights' writes 4.7. VICTORY_REFRESH_SPLIT says 13.7 flushes a frame go straight to the kept threads (15.2 ms in the calls) and only 4.1 small ones stay on the submitting thread with VICTORY_REFRESH_PROBE_US=300. The relay thread spends 21 ms of its 29 ms waiting for the card.

Picture: interiors are visually broken without ray tracing

pr18-interior-1 pr18-interior-2
  • Surfaces burned out to white: windows, the aquarium glowing like a lamp, the table top.
  • The wooden floor covered in white grainy noise (looks like frost), with dark patches.
  • Small white dots floating all over the room.
  • Bloom and lens flare far too strong around the light sources.

The same room with VICTORY_AMBIENT_SPECULAR=0 (reflection estimate off, everything else the same): almost everything turns black except the windows, and the white dots are still there. So the reflection stand-in is nearly all of the indoor light without rays, and the dots come from somewhere else (a dropped pass or particles: about 300 draws a frame are still dropped). The shader counter showed 1,283 still being made at that moment.

pr18-specular-off-black

VICTORY_AMBIENT_ONCE=1 (the one-bounce estimate described in ambient.rs, about 1.9x less light near pale surfaces and lamps) ran 15 minutes without problems; it is not in -Fast or the F1 menu. I don't have a screenshot of the same spot with it yet.

Bugs found

  1. Closing the window does not end the process. After closing the game window, victory.exe stayed alive at about 14 GB and logged streamline: [getRefreshRate] Window handle 0x... is not a valid window in a loop (several times a second for over a minute) until I killed it. Another session in the same build closed normally (title suspended, pipeline library saved), so it seems to depend on how the window goes away.
  2. About 300 draws a frame are still dropped without a host pipeline after all pipelines are made, plus 29 a pipeline creation method that is not implemented warnings.

Suggestions

  • Put VICTORY_AMBIENT_ONCE=1 in -Fast (or make it the default whenever VICTORY_AMBIENT_SPECULAR is on) and add it to the F1 menu, since the overexposed rooms are the main visual problem in this mode.
  • Weight the reflection stand-in by the surface's roughness, so matte wood does not shine like glass.
  • Stop Streamline's present hooks once the window is gone, so the process can exit.

Logs from these sessions are available if useful.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7230075631 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/18#issuecomment-7230075631). Originally posted by [Smoodie7](https://github.com/Smoodie7) on 2026-11-27T23:21:16Z. --- ## Test report: this PR merged with `main` (df2daaf), RTX 4070 Ti SUPER 16 GB I merged this branch with the current `main` (one commit behind, no conflicts), built it from source (`cargo build --release --locked -p victory`, MSVC toolchain) and played three sessions with `scripts\play-foxhound.ps1 -Fast -Dlss quality -FrameGen -FgType dlss` (Series X profile, native 2560x1440, DLSS renders 1706x960, DLSS frame generation 2x, ray tracing off). Story save, interiors and streets. **PC:** RTX 4070 Ti SUPER 16 GB (driver 621.40), Ryzen 7 7700 (8C/16T), 32 GB, Windows 11 Pro 26300. ### Performance: it runs well and is playable | Session | Length | Rendered FPS (median / p10) | ms a frame | CPU preparing | Draws a frame | Dropped without a host pipeline | Crash | |---|---|---:|---:|---:|---:|---:|---| | `-Fast` | 37 min | **17.3 / 12.1** | 57.7 | 42.4 | 7,238 | 303 | none | | `-Fast` + `VICTORY_AMBIENT_ONCE=1` | 15 min | **15.8 / 12.9** | 63.5 | 42.2 | 7,440 | 302 | none | With frame generation that is about 33-35 FPS shown (the title bar read "18 fps (frame gen 35 fps)"). Samples are taken once no pipeline is being made and with more than 1,000 draws; the two sessions were in different places, so the gap between them is the scene, not the switch. Where the submitting thread's 51 ms go (a typical line): lists' steps 24.2 ms, of which **refreshes 16.4 ms in 25 flushes of 5,887 (4,909 known to copy nothing)**; copies in the card's memory 8.4; planning steps on the card 7.1; asking the write watch 5.5; putting the title's bytes under flights' writes 4.7. `VICTORY_REFRESH_SPLIT` says 13.7 flushes a frame go straight to the kept threads (15.2 ms in the calls) and only 4.1 small ones stay on the submitting thread with `VICTORY_REFRESH_PROBE_US=300`. The relay thread spends 21 ms of its 29 ms waiting for the card. ### Picture: interiors are visually broken without ray tracing <img width="2559" height="1364" alt="pr18-interior-1" src="https://github.com/user-attachments/assets/e7bde19a-7472-4581-9dbc-a62f5dedee29" /> <img width="2559" height="1390" alt="pr18-interior-2" src="https://github.com/user-attachments/assets/38f28be3-1ca3-4989-b2d4-911bb7a634db" /> - Surfaces burned out to white: windows, the aquarium glowing like a lamp, the table top. - The wooden floor covered in white grainy noise (looks like frost), with dark patches. - Small white dots floating all over the room. - Bloom and lens flare far too strong around the light sources. **The same room with `VICTORY_AMBIENT_SPECULAR=0`** (reflection estimate off, everything else the same): almost everything turns black except the windows, and the white dots are still there. So the reflection stand-in is nearly all of the indoor light without rays, and the dots come from somewhere else (a dropped pass or particles: about 300 draws a frame are still dropped). The shader counter showed 1,283 still being made at that moment. <img width="2559" height="1387" alt="pr18-specular-off-black" src="https://github.com/user-attachments/assets/ede81c23-0a05-4620-9d75-b5b041cbbb80" /> `VICTORY_AMBIENT_ONCE=1` (the one-bounce estimate described in `ambient.rs`, about 1.9x less light near pale surfaces and lamps) ran 15 minutes without problems; it is not in `-Fast` or the F1 menu. I don't have a screenshot of the same spot with it yet. ### Bugs found 1. **Closing the window does not end the process.** After closing the game window, `victory.exe` stayed alive at about 14 GB and logged `streamline: [getRefreshRate] Window handle 0x... is not a valid window` in a loop (several times a second for over a minute) until I killed it. Another session in the same build closed normally (title suspended, pipeline library saved), so it seems to depend on how the window goes away. 2. About 300 draws a frame are still dropped without a host pipeline after all pipelines are made, plus 29 `a pipeline creation method that is not implemented` warnings. ### Suggestions - Put `VICTORY_AMBIENT_ONCE=1` in `-Fast` (or make it the default whenever `VICTORY_AMBIENT_SPECULAR` is on) and add it to the F1 menu, since the overexposed rooms are the main visual problem in this mode. - Weight the reflection stand-in by the surface's roughness, so matte wood does not shine like glass. - Stop Streamline's present hooks once the window is gone, so the process can exit. Logs from these sessions are available if useful.
Smoodie7 commented 2026-11-27 23:26:09 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Smoodie7 on 2026-11-27T23:26:09Z.


Follow-up to my report above: the VICTORY_AMBIENT_ONCE=1 session was the best of the three by far. The interiors looked right to me: lit, without the burned-white windows, glass and table tops, and without the frosty floor. Same frame rate as without it, and no crash in 15 minutes.

So I'd suggest turning it on in -Fast and listing it in the F1 menu. On my local merge of this branch that is three lines in scripts/play-foxhound.ps1 ($settings.VICTORY_AMBIENT_ONCE = '1' in the -Fast block) and one menu item in crates/victory-gpu/src/host/menu.rs right after REFLECTION ESTIMATE (Item { var: "VICTORY_AMBIENT_ONCE", label: "LIGHT ESTIMATE: ONE BOUNCE", values: ON_UNSET, live: false }); the menu tests pass. Happy to open it as a PR against your branch if that helps.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7230138712 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/18#issuecomment-7230138712). Originally posted by [Smoodie7](https://github.com/Smoodie7) on 2026-11-27T23:26:09Z. --- Follow-up to my report above: the `VICTORY_AMBIENT_ONCE=1` session was the best of the three by far. The interiors looked right to me: lit, without the burned-white windows, glass and table tops, and without the frosty floor. Same frame rate as without it, and no crash in 15 minutes. So I'd suggest turning it on in `-Fast` and listing it in the F1 menu. On my local merge of this branch that is three lines in `scripts/play-foxhound.ps1` (`$settings.VICTORY_AMBIENT_ONCE = '1'` in the `-Fast` block) and one menu item in `crates/victory-gpu/src/host/menu.rs` right after REFLECTION ESTIMATE (`Item { var: "VICTORY_AMBIENT_ONCE", label: "LIGHT ESTIMATE: ONE BOUNCE", values: ON_UNSET, live: false }`); the menu tests pass. Happy to open it as a PR against your branch if that helps.
73N1X commented 2026-11-28 17:49:35 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 73N1X on 2026-11-28T17:49:35Z.


Hi @Kemerd,

I've been investigating the console's pipeline creation ABI, particularly the fallback from device method 0x218 to 0x1F0.

Based on your implementation, I've prepared an experimental compute pipeline acceptance gate that checks actual host PSO readiness before handing the pipeline object back to the title.

  • Uses existing pipeline workers.
  • Preserves the fallback on failure or admission timeout.
  • Limits speculative compilation to one outstanding job.
  • Reserves up to 5 ms per admission wait and 50 ms per frame.
  • Reuses the accepted Pending instance and host PSO.
  • Disabled by default.

Validation on Windows:

  • 41/41 test executions passed.
  • Real D3D12 host PSO creation and reuse verified.
  • Standard and diagnostics configurations passed.
  • Release checks passed.
  • Asset policy: 301 files OK.

The positive test verifies PSO acceptance and reuse, not cold compilation latency. Gameplay behavior and admission effectiveness on NVIDIA hardware still require validation.

Based on your commit 9a9d5158, with only three files modified.

Implementation:
github.com/skAInet-labs/VIctory-NVIDIA@f615466c19

Would you be interested in reviewing this as a follow-up to your pipeline pieces implementation?

Thanks for the groundwork.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7243316288 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/18#issuecomment-7243316288). Originally posted by [73N1X](https://github.com/73N1X) on 2026-11-28T17:49:35Z. --- Hi @Kemerd, I've been investigating the console's pipeline creation ABI, particularly the fallback from device method `0x218` to `0x1F0`. Based on your implementation, I've prepared an experimental compute pipeline acceptance gate that checks actual host PSO readiness before handing the pipeline object back to the title. - Uses existing pipeline workers. - Preserves the fallback on failure or admission timeout. - Limits speculative compilation to one outstanding job. - Reserves up to 5 ms per admission wait and 50 ms per frame. - Reuses the accepted Pending instance and host PSO. - Disabled by default. **Validation on Windows:** - 41/41 test executions passed. - Real D3D12 host PSO creation and reuse verified. - Standard and diagnostics configurations passed. - Release checks passed. - Asset policy: 301 files OK. The positive test verifies PSO acceptance and reuse, not cold compilation latency. Gameplay behavior and admission effectiveness on NVIDIA hardware still require validation. Based on your commit `9a9d5158`, with only three files modified. **Implementation:** https://github.com/skAInet-labs/VIctory-NVIDIA/commit/f615466c197c842753ff643c2ce163d053204df3 Would you be interested in reviewing this as a follow-up to your pipeline pieces implementation? Thanks for the groundwork.
Smoodie7 commented 2026-11-28 18:17:04 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Smoodie7 on 2026-11-28T18:17:04Z.


@Kemerd this PR conflicts with main again (59 commits since my last test merge), so I resolved it on my fork and opened it against your branch: https://github.com/Kemerd/VIctory-NVIDIA-RT/pull/19. Merging that one into rt-native-builder-calls makes this PR mergeable again.

The main call in it: main now has its own KEY BINDINGS page in F1 (mouse and keyboard), which covers this branch's inline key lines. So I kept main's menu and put back this branch's own items (HDR, wide pictures, Reflex, RT native, RR, the SHADERS line). Details and tests are in the PR.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7243672724 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/18#issuecomment-7243672724). Originally posted by [Smoodie7](https://github.com/Smoodie7) on 2026-11-28T18:17:04Z. --- @Kemerd this PR conflicts with `main` again (59 commits since my last test merge), so I resolved it on my fork and opened it against your branch: https://github.com/Kemerd/VIctory-NVIDIA-RT/pull/19. Merging that one into `rt-native-builder-calls` makes this PR mergeable again. The main call in it: `main` now has its own KEY BINDINGS page in F1 (mouse and keyboard), which covers this branch's inline key lines. So I kept `main`'s menu and put back this branch's own items (HDR, wide pictures, Reflex, RT native, RR, the SHADERS line). Details and tests are in the PR.
trustno1-coder commented 2026-11-28 18:27:02 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-28T18:27:02Z.


Thanks for this. I'm closing it without merging: at 77 files and about 20,000 lines it's too big to review and test as one change, it conflicts with main, and it adds SDK download scripts. If you want these changes in, please split them into small pull requests against the current main, one change each (for example Reflex, the ultrawide support and the physics timing separately), so each can be tested on its own.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7243799021 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/18#issuecomment-7243799021). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-11-28T18:27:02Z. --- Thanks for this. I'm closing it without merging: at 77 files and about 20,000 lines it's too big to review and test as one change, it conflicts with main, and it adds SDK download scripts. If you want these changes in, please split them into small pull requests against the current main, one change each (for example Reflex, the ultrawide support and the physics timing separately), so each can be tested on its own.
Kemerd commented 2026-11-29 08:15:04 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Kemerd on 2026-11-29T08:15:04Z.


guess I will just keep working on my own copy of it, you could have reviewed this PR when it was the only PR in the whole repo, like 2 days ago, your loss brother

also

scrub your repo of mentions of copyrighted content man, including all commit history, or it is gonna cause problems!

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7252983048 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/18#issuecomment-7252983048). Originally posted by [Kemerd](https://github.com/Kemerd) on 2026-11-29T08:15:04Z. --- guess I will just keep working on my own copy of it, you could have reviewed this PR when it was the only PR in the whole repo, like 2 days ago, your loss brother also scrub your repo of mentions of copyrighted content man, including all commit history, or it is gonna cause problems!

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!18
No description provided.