Offline RX 5700 XT launcher, diagnostics, and guarded texture profiles #3745

Open
blkph0x wants to merge 53 commits from upstream-pr/3745 into main
blkph0x commented 2026-11-28 14:15:16 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by blkph0x on 2026-11-28T14:15:16Z.


Scope

This is the complete source-only RX 5700 XT/offline-launch work from this branch. It adds a guarded Windows launch and diagnosis flow, an opt-in cooked-texture path, and renderer fixes found while tracing the first world frames. It does not establish a playable or 30 fps RX 5700 XT build.

Launch, isolation, and local diagnostics

  • Add a four-tab Windows launcher (Game, Graphics, Performance, Debugging) with saved settings, detected GPU, 720p/1080p/native/custom profiles, title quality/effect controls, a master shadow switch, explicit experimental ray-tracing control, 85%-of-current-DXGI-budget VRAM slider, root-buffer system RAM slider, and one-time shader/pipeline prebuild.
  • Add local shader, texture, sprite/target, frame, DRED, coverage, and GPU-timing controls. Full-resolution presented-frame capture is opt-in; target readbacks retain their reduced preview size.
  • Build offline, verify exact title/loader inbound and outbound WFP blocks including loopback before launch, and keep launch plans/logs in checked fixed-local paths. Reject UNC, mapped-network-drive, and reparse paths for launcher state, game inputs, selected cook inputs, and output roots. Pin the loader's cache, data, and config to checked local locations so inherited variables or a game-folder victory.toml cannot redirect writes.
  • Add a bounded RX 5700 XT world-run harness with automatic Enter, frame/target captures, shader and descriptor coverage, budget accounting, optional DRED/exit tracing, and strict diagnostic gates. The native first-run path builds offline, logs locally, checks WFP, and limits its job to one title process.
  • Add source-only native runtime/shim build and first-run scripts. No game executable, DLL, RPF, decoded texture, screenshot, cache, or log is part of this PR.

Graphics and texture handling

  • Add title settings edits for resolution and quality, 720p presentation/window limits, Series S/FidelityFX controls, compute-to-vertex mesh fallback, a guarded RGB9E5/shared-exponent path, shadow and ambient fallback controls, and additional shader lowering/validation and capture probes. These are compatibility/diagnostic paths, not a general shader-quality compiler setting or true render-target downsample.
  • Improve host texture admission and retry after temporary memory pressure, descriptor/used-null accounting, view/materialization diagnostics, copy/readback handling, and placed-resource/buffer management. Adapt the GPU-written texture alias synchronization from #3170 for CopyResource, CopyTextureRegion, and readback.
  • Keep the exact observed 1024² BC3/11-mip raw-block copy destination's top mip before its first host creation, with a 4 MiB concurrent extra-allocation cap and existing-heap-only behavior after the stream budget closes. This fixes the traced skipped mip-0 copy without broadly admitting all large textures.
  • Adapt #3736 so every detected device removal carries DRED data, #3689's half-float capture preview behavior, #3652's full-resolution presented capture option, and #3542's fail-fast check for missing shader warm-up input roots.

One-time cooked profiles

  • Add semantic offline texture cooking for separately supplied, classified 2D source images (color, normal, material, cutout, UI/detail) and 720p/1080p outputs. The menu's Cook verified textures... action runs cooking, builds/validates a profile, and writes local logs.
  • Runtime substitution is opt-in and limited to explicitly verified same-format BC mip identities, with original detiled-mip and cooked DDS BLAKE3 checks, fixed-local input checks, a bounded cache, and original-upload fallback. Original title archives are retained. This is not automatic replacement of every texture, render target, sprite, atlas, BC6/HDR image, or material.

Upstream PR review and decisions

I inventoried the titles and bodies of all 1,816 open PRs in the final review snapshot and inspected the renderer, capture, shader, streaming, and CLI candidates relevant to this branch. New #3737–#3743 candidates were reviewed separately as the inventory changed.

PR Decision Evidence
#3170 GPU-written alias copies Adapted Its new copy regression was red on this branch's baseline (all-zero readback), then green with the synchronization fix; focused GPU tests pass in diagnostics and no-default modes.
#3689 half-float capture PNG Adapted Focused test passed on the PR head and after integration; malformed rows are rejected.
#3652 full-resolution presented PNG Adapted Focused test passed on the PR head and after integration; the option does not expand target readbacks.
#3542 missing warm-up roots Adapted Focused test passed on the PR head and this branch; missing input fails before creating an apparently successful cache.
#3736 complete DRED removal reports Adapted A pure removal-data regression was red on this branch before the change, then green (2/2); submission reports include DRED once, and non-submission failures now retain it too. No hardware removal occurred in the latest game run.
#3537 RGB9E5 view compatibility No cherry-pick Its focused test passes upstream, but this branch already has a broader R32_UINT/shared-exponent alias bridge and the patch conflicts with that path.
#3647 partial-mip clamp Deferred Its format tests pass, but it cannot restore the missed BC3 mip-0 copy and changes explicit LOD/view semantics without a game validation.
#2297 first-use upload Deferred Its test does not cover this branch's submission ordering, which hoists texture uploads ahead of the lists that use them.
#1272, #3706, #3543, #3529, #3414, #3588, #3670, #3584, #3715, #3687 Deferred These are distinct paths, overlap existing local fixes, or lack evidence for the observed used-null/budget failure; see the issue-specific tests and diagnostic coverage below.
#3737–#3740, #3742–#3743 Deferred Newly opened narrow DXIL or diagnostic-ranking optimizations. Their PRs do not report game-frame measurements and do not address the current admission failures.

Please retain credit for the adapted upstream contributions: #3170 by fuzeofficlal, #3542/#3652/#3689 by andrewpozdnakov7-jpg, and #3736 by Ingenioeren.

Verification

  • cargo test --offline --workspace --locked: pass (including GPU, shader, runtime, and asset-policy tests; the repository's declared ignored benchmarks/reference-data tests remain ignored).
  • Both CI Clippy modes pass with warnings denied: cargo clippy --offline --workspace --all-targets --locked -- -D warnings and the same command with --all-features.
  • Diagnostics and no-default focused alias/BC3/capture tests and checks: pass. cargo check --offline --manifest-path apps/victory-native-runtime/Cargo.toml: pass.
  • Offline release native runtime and all shim DLLs: built successfully to an ignored test output directory. First-run helper rejects a requested two-process job.
  • Python cooker/profile/diagnostic test scripts: pass. The one-time menu cook completed on a real classified 4K source pair, produced a separate output profile, and validated one 720p original-mip identity. This is a cooking/verification proof, not evidence that the current game scene sampled that texture.
  • Launcher menu/negative-path suite, preflight UNC/mapped-drive/junction rejection, PowerShell syntax, git diff --check, and cargo xtask policy: pass. The GUI form was constructed and validated programmatically; a full visual click-through of its Windows form was not available through the computer-use surface.
  • Controlled RX 5700 XT / Ryzen 3900X 720p world run: exact loader WFP inbound/outbound/loopback preflight passed, TCP/UDP monitor maxima were 0/0, the world frame completed, 1,773/1,773 bound shader paths translated, zero unexpected drops, and no GPU removal. The BC3 destination retained mip 0 (first_host_dropped=0). Strict graphics gate failed: median 1.3 fps, 3,069 shader-used valid texture-null events (all host-copy-unavailable), and 721 used buffer Budget nulls. Texture retry ran 5,018 times and recovered 697 views, but the combined 9 GB stream admission cap remained under pressure. Socket sampling is diagnostic; WFP verification is the isolation gate. These filters apply to the title/loader executable, not arbitrary preparation/debugger processes. The raw C first-run helper requires its protected PowerShell wrapper; direct invocation is not an isolation gate.

Follow-up diagnosis on this branch

  • Added a bounded shader-use-weighted identity census for null texture views (source, title address, dimensions, format, failure reason, example pipeline/root slot); the 120-second offline world run had no census overflow and identified a repeatedly used 1x1 format-41 missing texture. This is shader-use evidence rather than a count of every descriptor materialization.
  • Added placement-failure counters and fixed strict-run shutdown to wait for drop, buffer, and texture reports through the latest FPS row. The previous strict run stopped between its final FPS line and reports, leaving one interval unclassified. PowerShell parsing and the timestamp replay confirmed that race.
  • Controlled 720p RX 5700 XT run with full coverage: 1,771/1,771 bound shaders translated, 1.7 fps median, 1,395 used null texture events in 14 classified intervals, 7,554 used Budget-null buffer events, zero observed sockets and no GPU removal. The strict graphics gate failed. One final interval is unclassified because this run predates the harness fix.
  • The first instrumented repeat reached a world frame, then the title's known watchdog deliberately wrote to null at image RVA 0x23cf683 and exited 0xc0000005 before the cap closed. The title's Breakpad upload was blocked by the HLE network layer; WFP and the socket monitor observed no endpoints. This run cannot diagnose placement pressure.
  • A repeat with full view/pipeline coverage disabled completed 90 world seconds: 1,724/1,724 bound shaders translated, all 10 drop/used-null intervals classified, 1.55 fps median, 61 valid used null texture events, 477 used Budget-null buffer events, zero observed sockets, no GPU removal or watchdog. Of 1,078 reuse-only sampled-texture attempts, 897 succeeded and 181 deferred. All 189 failed placement sub-attempts lacked an eligible existing heap range; none were unplaceable or rejected by D3D12. Different frames and coverage overhead prevent a causal claim about the watchdog or the miss-count difference.
  • cargo test --offline --workspace --locked, both strict workspace Clippy modes, the diagnostic analyzer tests, PowerShell syntax, git diff --check, and cargo xtask policy pass on cd52b2b. The PR stays draft because the live graphics gate fails.
  • A paired offline two-minute uiOverlay=true/false test held the 720p launch and loader binary fixed. Both arms set the secondary title dimensions to 3840x2160, enabled the secondary flag, listed a 4K PresentX plane, and created 17 4K textures; neither reached the world. The original settings were restored byte for byte, and each arm saw 0/0 TCP/UDP endpoints under verified WFP blocks. This rules out uiOverlay alone as the switch for the extra 4K path. See docs/shader-audit.md for the observed addresses and limits.
  • A focused offline CDB hardware watchpoint caught the secondary 4K flag becoming one during a 0x1e8-byte memmove of display state into the prepared image globals. The copied state already held 3840x2160. The title copy site is image RVA 0x19f4e15, called via 0x5804379; the original object-state producer remains unidentified. The harness now accepts a local custom CDB command file with -TraceExit while retaining the exact-loader WFP preflight. PowerShell syntax, its negative option gate, and git diff --check pass. See docs/shader-audit.md for the stack, limitations, and raw-run identity.
  • A second offline hardware watchpoint followed the secondary width from its object constructor: it starts at zero and becomes 3840 when a later 0x1e8-byte stack temporary is copied into the source object at title return RVA 0x43a48de. The adjacent source fields then hold 2160 and flag one. The earlier zero-valued initialization pass and later 4K copy show multiple settings passes; the operation selecting 4K is still not identified.
  • Reviewed #3754 after its author explicitly flagged interaction with this PR. Its unlocked guarded-page read relies on an OPENED counter for every page opening. This branch's run-batched open_guarded removes pages without such a counter; importing #3754 unchanged would permit stale saved bytes. It also has a reported rare unresolved test failure and no RX 5700 XT world measurement. I have not imported it. Any combined implementation must bump each page's counter before the batched VirtualProtect and pass concurrent saved-byte tests and a controlled game run.
  • Refreshed the open-PR inventory before this update. New #3744 (literal min/max shader emission) and #3746 (XMA FFT stages) have focused upstream tests, but no measured benefit for the observed heap-range shortage; neither was imported. Upstream main has not advanced past 63bcca4.

Launcher persistence and local file discovery

  • The Game tab searches the launcher folder, or a selected local folder, recursively for the title EXE and a complete pair of PC FidelityFX DX12 DLLs. It skips reparse points, rejects network paths, reports ambiguous matches, and offers pickers when files are missing.
  • Save settings and Close now persist every menu choice, including incomplete paths, to local JSON. Writes replace the old settings atomically. Launch offline still validates the complete plan before running.
  • Verified the menu under Windows PowerShell 5.1 and passed the headless launcher suite, including reopen/roundtrip, incomplete draft, nested discovery, incomplete DLL pair, ambiguity, and unsafe-path rejection. cargo xtask policy passed (245 files).

Open work / review focus

The latest change makes bounded texture eviction keep scanning after an oversized candidate, so smaller old textures can release reusable heap ranges within the same per-frame allowance. Targeted idle and budget-driven regression tests pass; the RX 5700 XT world effect remains unmeasured. The 4K source trace now reaches the title display callback's alternate width/height fields; their earlier setter is still under investigation. The diagnostic build now logs up to 24 distinct closed-cap placement misses with each texture's shape, allocation size, and alignment. This can be compared against the existing reusable-range census in the next guarded run. All 344 active diagnostics GPU library tests pass when run serially.

  1. Reclaim or prioritize sampled-texture heap ranges under the 9 GB cap using the new shader-use-weighted identities and placement-failure counters. The measured closed-cap misses are lack of eligible existing ranges, while earlier cap increases removed the GPU.
  2. Resolve the remaining valid texture and Budget buffer nulls, dark/overbright regions, and frame-time cost. The current branch is not verified playable or at 30 fps on the RX 5700 XT.
  3. Expand cooked profile coverage only with verified identities and scene-use evidence. Preserve title archives and reject mismatched assets.

The PR is a draft because the strict world graphics gate still fails and the change set spans launcher, native runtime, shader translation, texture handling, and GPU diagnostics. Review can be divided by the sections above.

Verified title-side 720p follow-up (b25cd15)

  • The Series 1.0.2.1 title constructs a 3840x2160 uiResolution object before reading settings.xml. The loader now patches only that exact reflected field in the derived image when 1280x720 is selected, and pairs it with a measured 16 MiB UI work-area reserve. Exact original-byte and build-hash checks fail closed; the title EXE and archives remain untouched. A standalone launch previously hit the title's own unused-work-area INT3 with its fixed 82 MiB reserve; the paired patch passed that check without a debugger.
  • Guarded RX 5700 XT run rx5700-offline-20261129-023716Z: 1280x720 PresentX planes and title viewport, first world frame 6,950, 1,786/1,786 bound shaders translated, 231,461 texture view materializations with zero failed paths, zero reported GPU removal, and TCP/UDP monitor maxima 0/0 under verified inbound/outbound blocks. The world was still dark/tiled: median 1.4 fps, 7,675 shader-used Budget null buffer events, and 15 unexpected drop categories. A separate one-minute run without an opt-in environment flag verified automatic launch behavior.
  • A guarded comparison with -RootReuseOnly -RootPressureTrimMB 768 -RootSystemMB 4750 reached the world without GPU removal, reduced Budget null buffer events to 96 and unexpected drop categories to zero, but still showed dark/tiled graphics and 0.9 fps median with more draws. These settings remain experimental; the runs are not matched-scene performance comparisons.
  • cargo test --offline -p victory and cargo clippy --offline --workspace --all-targets --locked -- -D warnings pass. The first CI run after the initial push caught a collapsible if; b25cd15 corrects it. The strict graphics gate remains failed, so this PR remains draft.

True 720p render-scale and packed sky follow-up (e507f3f)

  • PresentX and the swap chain are 1280x720. The title's FidelityFX context intentionally renders at 853x480 and outputs 1280x720. Its half-size packed sky R9 input is 427x240; that size was missing from the separate R32_UINT/R9G9B9E5 row-major repack list. A captured 731 input showed shared_exp=true, separate=false and visible blocks before the composite.
  • Added only the measured 427x240 shape. A guarded diagnostic launch confirmed separate=true, a 430,080-byte row-major repack, and a smooth captured 731 input/output and next presented frame. A later uncaptured 30-second world run still had block artifacts, despite no GPU removal or observed connections and a 3.75 fps median. Capture readback or later writers may affect the result; the visual problem is not closed. The user-facing fsrSharpen and general sharpening are already off. The title's 853x480 input means FidelityFX is not inherently required for 720p output, but replacing it requires a complete host upscale route.
  • The focused GPU regression test and strict workspace Clippy gate pass; the raw run evidence and limits are in docs/graphics-probe.md. Keep this PR draft until the uncaptured world image is usable and frame rate improves.

Follow-up controls (cbf50fb)

  • A guarded fsrQuality=1 settings probe still created the title's FidelityFX context at 853x480 render and 1280x720 output. The original settings XML was restored byte for byte. Sharpening is already disabled in the low profile; this does not prove FFX alone causes the grain because the captured pre-upscale scene is grainy too.
  • Disabling the 731 world composite through the launcher diagnostic toggle did not eliminate blocks in a normal presented world frame. The remaining artifact cannot be assigned to 731 alone or to a wrong 1280x720 PresentX plane. See docs/graphics-probe.md for run identities and limits.
  • CI had two unrelated parallel GPU test failures from process-global emulator state and tick timing. The entire workspace test suite passed locally with --test-threads=1; CI now uses that mode and passed at 24d5e74. The PR remains draft.

720p packed output fix and distributed contribution guide (88589b7)

  • A paired guarded trace localized the remaining large blocks after FidelityFX: the 1280x720 float output was smooth, while the same-memory packed R9G9B9E5 reader and presented image were tiled. The measured 1280x720 shape now uses the existing separate R32_UINT/R9 reader and row-major repack path. The targeted run logged a 3,686,400-byte repack and smooth packed/presented captures.
  • A later uncaptured, normal-shader RX 5700 XT world run (rx5700-offline-20261129-045813Z) also showed no large tile grid. All 1,650 bound shader paths translated; valid missing texture descriptors were zero, Budget-null buffer uses were 24, no GPU removal was reported, and the guarded test observed 0/0 TCP/UDP endpoints under verified exact-loader inbound/outbound WFP blocks. The scene remains very dark and the median was only 1.3 fps over five samples. This is evidence for the block fix in the tested scene, not a playable or 30 fps build. Raw frames and metrics are in the ignored local run folder; the stage comparison and limits are in docs/graphics-probe.md.
  • Adapted the supplied ai-pr-workflow-starter.zip into AGENTS.md, CONTRIBUTING.md, .github/copilot-instructions.md, .github/PULL_REQUEST_TEMPLATE.md, and docs/contribution-integration.md. These keep one evolving task PR and this single cumulative draft for the RX 5700 XT goal. Because the integration branch currently exists in the blkph0x fork, task PRs intended for this cumulative build must target blkph0x/VIctory:feat/offline-launch-debug-rx5700; upstream main PRs do not automatically join it. The guide records review, dependency revision, CI, attribution, and remaining-blocker expectations. No branch protection or custom policy controller is claimed as installed.
  • Validation at 88589b7: cargo test --offline --workspace --locked -- --test-threads=1 passed; both strict workspace Clippy modes (default and --all-features) passed; git diff --check passed. The full hardware run passed its isolation and world-completion gates but failed the visual brightness and performance goals. Keep this PR draft.
  • #3820, reviewed at db84ddceab5d21b462ee68428309e56241fe5462, proposes broader agent, contribution, compliance, interoperability, and README guidance. Its CI passed, but it has no review decision and targets upstream main; it is pending, not included here. AGENTS.md, CONTRIBUTING.md, and README.md overlap this branch. The proposed resolution is to preserve #3820's author and general guidance if accepted, append this branch's task-PR/fork routing rules, resolve README explicitly, and rerun combined CI. See docs/contribution-integration.md.
  • #1741, reviewed at d2c9a469e7ae77db0e393def1d593a7a460f07fc, has useful agent guidance, but maintainer triage says its process requirements need a maintainer decision. It is not a prerequisite. #3087, reviewed at 163befa989f7083106c59610b1adb37773e1557c, was identified in its discussion as guidance for a different project and is excluded.
  • This branch's new coordination rules explicitly govern the fork integration effort. They are a proposal for upstream review, not a claim that repository-wide policy, branch protection, or custom CI gates have been adopted. #3820's timeline currently shows two commits and no direct mention of #3745, review, or discussion. The two efforts overlap by files and intent, so we recorded the dependency decision rather than claiming an existing agreement.
  • At head 4098be1, cargo xtask policy and git diff --check pass. CI passed both strict Clippy modes and serial workspace tests; the preceding code commit 88589b7 also passed CI.

2026-11-29 indirect-light and buffer diagnosis (head a18b6db)

Base reviewed: upstream main 63bcca43c6. This update adds a paired R9G9B9E5 interpretation of the screen-probe UAV before and after the optional ambient pass, plus an opt-in light floor gated to the selected hardware AMD adapter when its D3D12 ray-tracing tier is unsupported. NVIDIA and ray-capable adapters compile the original 13-constant ambient shader and use its original write path. The RX 5700 XT harness exposes CaptureAmbient and AmbientFill with validation for incompatible capture options. Docs record the exact runs and limitations.

Evidence:

  • At ambient 0.6, raw indirect-light median rose from 0.255 to 0.588 and the image washed out. At 0.35 with the AMD-only fill, the paired target rose from 0.00073 to 0.343, and the foreground was more readable without that washout. The latter 15-second world window had zero valid missing textures and zero Budget-null buffer uses, but much of the image was still black. The light pass therefore runs, and those two descriptor classes do not explain that captured dark frame.
  • A 125-second world baseline at the 4,500 MB root-copy cap completed with no GPU removal, 1.1 fps median, 14,089 shader-used Budget-null buffers and 382 valid missing textures. Earlier 4,750 MB long runs hung with 0x887A0007 and empty DRED breadcrumbs. A wider table-preseed trial remained dominated by the same large null ranges and had worse measured counts; it was removed.
  • Final-source guarded AMD run at ambient 0.1: 1,645/1,645 bound shaders translated, zero unexpected drops, no GPU removal, and zero observed TCP/UDP endpoints under verified exact-loader inbound/outbound WFP blocks. The 0.35 paired-capture run: 1,556/1,556 translated, zero unexpected drops, no GPU removal, and zero observed endpoints. Capture adds frame-time overhead; 30 fps and later-scene usability remain unverified.

Related PR revisions reviewed and deferred: #3414 2a6a8c6122 (source of the already-ported opt-in ambient pass), #3529 14dd3b8fd2 (overlaps bounded buffer retry already in this branch), #3457 3d4460a939 (cannot free descriptor-held copies), #3436 13d205c179 (shared sRGB UAV change does not match this packed-light target), and #3378 ca937383da (all bound shaders translated in the measured baseline). No code from these revisions was merged in this update. See docs/graphics-probe.md for capture details and other reviewed PRs.

Verification on a18b6db: serial offline workspace tests passed; focused diagnostics ambient tests passed, including host compilation of both shader variants; strict default and all-features Clippy passed; asset policy and git diff --check passed. That verification applied only to the older head. This PR remains draft because dark areas, later valid resource misses, and frame time are unresolved.

2026-11-29 shader and lighting follow-up (head 4769a6a)

Base reviewed: upstream 63bcca43c6a00a758510398fa43096ce7e4f7df0. The cumulative branch now includes #3587 at 733f9e8584e2a35cbf0f1e066a2077ad3502f039 with its original commits and authors. Its permlane lowering passed nine focused tests in an isolated merge, then the dumped title shader a929109552ce1e84 validated and created a D3D12 pipeline on the RX 5700 XT. The two remaining dumped shader failures are pixel barycentrics (5067d502a1b4ffb4) and whole-wave f64 work (6871d6e4b3ac9a10). #3588 at 6f3244873ab2b7689b4e726f936acb3c0a0bad3e uses native barycentrics that this GPU reports unsupported; #2348 at fd010350951e4731580a20ab896c65fe8f83c3ed advances the exact f64 shader only to a whole-wave lowering failure and has red CI. Both are deferred. #3663 overlaps the included permlane change and was not merged. No NVIDIA or hardware ray-tracing path was changed for these diagnostics.

A misconfigured guarded test pointed -FidelityFX at the game folder rather than the host SDK signedbin directory. The fallback console DLL left the title's jitter-phase-count query output zero, and the title divided by it. The saved minidump and first-chance CDB capture identify the title RVA and object field; docs/graphics-probe.md has the evidence. The test harness now requires both host DX12 FidelityFX DLLs before launch, and the analyzer reports abnormal title exits. A corrected-path 420-second high-draw test reached 3D frames and completed without that crash or GPU removal, under verified exact-loader inbound/outbound WFP blocks with 0/0 observed TCP/UDP endpoints. This does not resolve the lighting issue.

That corrected-path run still showed almost white outdoor frames, a near-black interior, 38,696 shader-used Budget-null buffer events, 8,993 valid missing texture uses, root-view draw failures, and a 1.7 fps heavy-window median. An opt-in 4,750 MB root-copy/reuse/trim trial reduced Budget-null events to 3,833 over its 180-second window, but the scene was still too dark and its median was 0.9 fps; scene timing differed, so these are not matched-frame performance figures. The GUI already exposes these experimental memory controls.

New one-shot diagnostics capture the packed screen-probe light before and after the optional AMD fallback, the color input before FidelityFX, and selected source textures of the temporal resolve. The dark silhouette is present before FidelityFX. Compute 34fb51b8a0312e82 (CS_ScreenProbes_TemporalResolve_ReflectiveCaustics) received materialized descriptors but produced near-zero packed light in the sampled scene. Its R11G11B10_FLOAT source at s1+24 was zero, while depth, normals and masks held scene detail. The trace maps that source to the UAV output of two CS_FinalGather variants (2dc364df5d3278b8, 940c2635dc1312f4). Their local native dumps have no BVH instruction, so the cause of their zero output remains open; earlier suppressed ray passes are a candidate, not a demonstrated dependency. Raw title shader containers and frames remain in ignored local test folders and are not in this PR. The new inspect_native example prints resource declarations and reachable instructions for a local container.

Validation at 4769a6a: guarded RX 5700 XT runs recorded no observed TCP/UDP endpoints or GPU removal in the stated windows; focused GPU library tests passed (346 passed, 3 ignored); serial offline all-features workspace tests passed; strict all-targets/all-features Clippy passed; git diff --check passed. Upstream CI run 46256201682 passed Clippy, diagnostics Clippy, and tests at this head. The PR stays draft: the legacy AMD path is still dark in parts, has valid resource misses and two shader gaps, and is far below 30 fps. Reproduce the exact stage and resource identities from docs/graphics-probe.md before implementing a software light source or changing memory admission again.

Suppressed-ray trace and controlled fallback review (head 48a75e5)

The diagnostics-only trace now records the title bindings of a deliberately suppressed ray shader before host descriptor admission. A null host slot at that point is expected and is not counted as a descriptor-materialization fault. -TraceShaderHash accepts comma-separated exact hashes for a single guarded run. The native programs of CS_RaytraceShadows_Mixed (0873f80dd84a3c5c) and CS_Primary_GatherVBuffer_WithFar (3592426e3e9142d8) contain image_bvh64_intersect_ray; their relationship to the zero FinalGather output is still unproven.

Reviewed #3398 at 846362d02355852ff7955ed73545df4863fa88b7 in an isolated worktree based on 4769a6a. Its root-miss BVH mode passed translation and DXIL validation for the captured primary-gather shader. An isolated RX 5700 XT test used a temporary legacy-AMD-only host gate. It removed suppressed-ray drops and produced limited nonzero screen-probe light, but the world still had a black foreground and broken geometry at 1.7 fps. A same-build, same-offset switch-off control had zero packed-light output, also showed the broken world, and ran at 1.5 fps. The scenes and number of bound shaders differed; aggregate misses are not a matched comparison. #3398 remains deferred and is not in this branch. Ray-capable and NVIDIA paths were not changed.

An isolated guarded VICTORY_STREAM_PRISTINE_MB=16 trial consumed about 16 MB of already allocated texture-heap tail without GPU removal. It still recorded 1,972 valid missing texture uses, 3,389 Budget-null buffer uses, and 0.9 fps median in a different scene. The allowance is not a new default. That later scene exposed a compute translation failure ceb5eb68cd99cb07 (descriptor read only as data) and an unclassified bound compute shader d7ad7fcacbe52893; their exact local containers are being captured for inspection. All three guarded runs verified exact-loader inbound/outbound blocks and observed 0/0 TCP/UDP endpoints. Details and limits are in docs/graphics-probe.md.

Validation for 48a75e5: strict all-targets/all-features GPU Clippy passed; serial GPU library tests passed (346 passed, 3 ignored); git diff --check passed. A parallel run hit the existing global-cache table_union_preseed_prevents_small_view_overlap test, which then passed alone and in the serial suite. Upstream CI run 46259593187 passed. This PR remains draft because the world is not yet usable and is far below 30 fps.

Screen-probe producer trace (head 63a24cb)

Base reviewed: upstream main 63bcca43c6a00a758510398fa43096ce7e4f7df0. This commit adds opt-in one-shot captures for FinalGather sources, packed screen-probe producers, and Inject sources, plus a bounded writer-binding trace and corresponding guarded-harness switches. These diagnostics do not change normal rendering or NVIDIA/ray-capable paths. docs/graphics-probe.md records the exact runs, command flags, frames, and limits.

In the same-process guarded world trace rx5700-offline-20261129-132546Z, the deliberately suppressed CS_Primary_GatherVBuffer_WithFar bound a 2304x576 R16_FLOAT UAV at title address 0xa63e40000 (s1+120). CS_ScreenProbes_Inject sampled the same address (s0+456) with a materialized descriptor and a nonzero direct dispatch. Its full source readback was zero. An R16_UNORM scene-mask source was populated, but Inject's packed R32 output and the Spatial Filter and Prefilter outputs were all zero in that frame. The downstream FinalGather R9 input was also zero in the earlier paired readback. The PNGs are half-size previews; logged statistics cover every readback texel. The diagnostic decoder now uses the bound sampled-view format for the typeless R16 source, correcting a misleading first preview.

The same-run offline test ended without GPU removal and observed 0/0 TCP/UDP endpoints under verified exact-loader inbound/outbound rules. It recorded 160 valid missing sampled-texture uses and 20 Budget-null buffer uses. Its 0.15 fps median includes trace/readback overhead; an uncaptured 30 fps world is not verified. This identifies one broken light-data chain, not all dark geometry. The isolated #3398 root-miss review remains deferred: its AMD-only trial allowed the ray path to dispatch but still showed a dark/broken world at 1.7 fps. No root-miss code was merged into this branch. The additional texture and buffer misses remain open.

Validation for 63a24cb: strict GPU all-targets/all-features Clippy passed, serial GPU library suite passed (346 passed, 3 ignored), PowerShell test-script parsing passed, cargo xtask policy passed (254 files), and git diff --check passed. Upstream CI run 46268014650 passed strict Clippy in both configurations and workspace tests. The PR remains draft because the RX 5700 XT world is not yet reliably usable or at 30 fps.

AMD render-path and title LOD review (head e7f3e20)

Base reviewed: upstream main 63bcca43c6a00a758510398fa43096ce7e4f7df0. This commit adds saved display controls with neutral FidelityFX exposure, a bounded highlight knee, and an AMD-only legacy ambient/display gate by default. It also integrates the byte-verified, opt-in title LOD, small-object cull, and vehicle LOD switches from #3817 at 5611a48cf9547ecfe723d224d8bc8eb873f80875, with source credit retained. Zero leaves each title setting alone. The three LOD switches are off by default, including on NVIDIA and ray-capable adapters. The launcher and guarded offline harness can reproduce the tested 0.35 / 2.5 / 0.5 profile. Low volumetrics remain off because prior testing produced black floors.

The guarded ray-off run with AMD-only ambient/display fallbacks produced a recognizable but dark world, with no GPU removal or observed TCP/UDP endpoints under verified exact-loader rules. The isolated LOD run applied all three expected title sites and measured 2.8 fps median over 45 seconds, with 1,642 valid missing texture uses and 498 Budget-null buffer uses. Some settled intervals reached about 5 fps, but the ground and interior remained too dark. The isolated software-BVH plus LOD comparison, using #3806 at 98cd1e341f191c57101631d37dc770c01f5a088f, drew more scene detail at 2.3 fps median, with 516 valid missing texture uses and 446 Budget-null buffer uses. It did not remove the GPU and observed 0/0 TCP/UDP endpoints. #3806 and the root-miss experiment #3398 remain deferred; neither shader change is merged here. These are different scenes and cannot support a matched FPS claim. FidelityFX frame generation is not active; only the host upscaler is used.

Validation at e7f3e20: launcher menu persistence/validation passed; strict all-targets/all-features Clippy passed for victory, victory-loader, and victory-gpu; serial loader and GPU library tests passed, including the exact title-byte golden test; cargo xtask policy passed (256 files); git diff --check passed. The render-path findings and run IDs are in docs/graphics-probe.md. The PR remains draft: neither path is reliably playable or near 30 fps, dark areas and real texture/buffer admission failures remain, and the next code work is targeted light-source correctness plus resource refresh/admission cost. Repository-wide cargo fmt --check still reports extensive unrelated formatting differences. Upstream CI run 46323326755 passed Clippy, diagnostics Clippy, and workspace tests at e7f3e20.

30 November diagnostic follow-up (ad204e8)

The analyzer now reports valid missing textures and Budget-null buffers for the last three complete five-second world intervals separately from cumulative startup totals. Missing or unclassified tail rows remain unavailable rather than appearing as zero. The 12 analyzer tests, cargo xtask policy (256 files), and git diff --check passed. This is diagnostic and documentation work; no experimental renderer or GPU-specific optimization from this round was merged.

Guarded RX 5700 XT runs found that the 720p fast-LOD control had 1,165 Budget-null buffer uses but zero valid missing texture uses in its last three intervals. Isolated descriptor-copy batching based on #3265 at 6c8fc754719e5da3a076d14aef9ae593d279b867 had 261 and zero, with different scene/shader coverage and no defensible FPS gain (3.45 vs 3.15 fps median). The longer 360p ultra-LOD cutscene run reached zero for both tail counters yet remained dark at 3.75 fps median and ended in GPU removal (0x887A0007, process 0x887A0005) as the local DXGI budget fell. All guarded runs observed zero TCP/UDP endpoints. An ambient level 0.6 test made the light buffer uniform and washed out the image. An isolated GI-only software-BVH run was recognizable but measured 1.25 fps. Details and run IDs are in docs/graphics-probe.md.

#3265 and the GI-only changes remain deferred. The next concrete targets are the actual indirect-light source, bounded root/descriptor retention and refresh cost, and stable comparable hardware runs. The PR remains draft; gameplay and 30 fps are unverified.

CI run 46328649008 passed Clippy, diagnostics Clippy, and workspace tests at ad204e8.

Depth-light and cinematic check (aa200b2)

An isolated depth-normal directional fill, gated to AMD adapters without hardware ray traversal, compiled and ran under the exact-loader offline block at an 8,000 MB stream cap. It changed the packed indirect-light target and lit the character, but the presented ground stayed dark, including after correcting the Y-up light direction. A same-settings control showed the same dark ground and bright sky. Different frame numbers and shader sets prevent a matched FPS claim. The shader and harness switch remain isolated and are not part of this PR.

A 120-second main-branch control with longer scripted Enter presses still captured cinematic shots at high-draw offsets 0, 30, 60 and 90 frames. It did not verify gameplay or a successful skip. It measured 1.0 fps median, with 567 Budget-null buffer and 223 valid missing texture uses in the last three intervals. The 8,000 MB run completed without GPU removal or observed TCP/UDP endpoints; its shorter duration does not resolve prior longer-run device removals. Details and exact run IDs are in docs/graphics-probe.md. The PR remains draft.

CI run 46332078942 passed Clippy, diagnostics Clippy, and workspace tests at aa200b2.

The follow-up mapped X-button control (rx5700-offline-20261130-010242Z) also remained in cutscene frames through offsets 0/30/60/90. It completed a 120-second guarded window without GPU removal or observed connections, but measured 1.55 fps median and still had 1,359 Budget-null buffer and 276 valid missing texture uses in its last three intervals. Its different scene/shader coverage prevents an Enter-versus-X FPS claim. No skip method or gameplay state is verified. Local Player and SARC0015 save containers exist, but their checkpoint position is unknown. This result is documented at 4548719; the PR stays draft.

CI run 46333337966 passed Clippy, diagnostics Clippy, and workspace tests at 4548719.

A follow-up guarded control held mapped X for 20 seconds at five points (rx5700-offline-20261130-011410Z). Its captured high-draw frames remained letterboxed cinematic shots; no skip, menu or controllable world was verified. It completed a 120-second window without GPU removal or observed TCP/UDP endpoints, but measured 1.35 fps median and still had 4,608 Budget-null buffer and 76 valid missing texture uses in its last three intervals. This result is documented at e9babdb. The scene and resource sets differ from earlier runs, so it is not an FPS comparison. The draft remains incomplete.

CI run 46334365602 passed Clippy, diagnostics Clippy, and workspace tests at e9babdb.

Wide table resource diagnosis (3d8e144)

Two guarded RX 5700 XT runs kept the exact-loader inbound/outbound WFP block active, observed 0/0 TCP/UDP endpoints, and completed without GPU removal. The 90-second run (rx5700-offline-20261130-013025Z) recovered zero wide table slots with the new read-only coherent-copy reuse fallback; it still counted 54,418 Budget-null buffer and 4,084 valid missing texture uses across 17 high-draw intervals. The 35-second diagnostic run (rx5700-offline-20261130-013752Z) showed that a 727,040-byte table view crosses two older, still active 1 MiB host copies. Creating another overlapping copy would split GPU writes, so the overlap denial is correct. It counted 1,270 Budget-null buffer and 1,656 valid missing texture uses across eight intervals. Different scenes and durations prevent a direct rate comparison.

The closed-cap texture pool deferred 807 of 1,206 sampled placement attempts in one interval for lack of a fitting existing heap range; after eviction, a later interval admitted all 137 attempts. The commit adds a bounded diagnostic for the top three wide buffer misses per five-second report, a safe reuse fallback when a coherent copy already covers a wide view, and a regression test. It does not resolve active overlapping copies or texture residency, and gameplay and 30 fps remain unverified. Full details are in docs/graphics-probe.md.

CI run 46336903929 passed Clippy, diagnostics Clippy, and workspace tests at 3d8e144. Local diagnostics GPU tests: 347 passed, three ignored. Related open PRs #3529 (14dd3b8fd2) and #3457 (3d4460a939) remain deferred; neither solves a view spanning active host copies.

Closed-cap resource recovery follow-up (a7fb298, 5663c46)

On legacy AMD adapters without hardware ray traversal, recycled sampled textures now take the tightest previously used free range in an existing heap. This preserves larger holes for later mip chains; it creates no new heap and does not change other adapter paths. A regression test covers fragmentation. The guarded 60-second run rx5700-offline-20261130-020028Z observed hundreds of alternate placements, but still had 738 valid missing texture and 1,237 Budget-null buffer uses. With the GUI's existing 512-pixel texture edge limit, rx5700-offline-20261130-020718Z had 224 valid missing texture uses overall and zero in the last three intervals. The two runs reached different scenes and shaders, so their counts are not a controlled A/B improvement claim. Both completed without GPU removal or observed TCP/UDP endpoints. CI at a7fb298 passed.

A separate bug in buffer-copy eviction left a nulled host slot marked as already made. 5663c46 marks evicted title slots unmade so the next draw or observed heap read rebuilds the unchanged descriptor. It leaves dynamic slots outside the title record array alone. The focused regression and full diagnostics GPU suite passed (349 passed, three ignored). The guarded 60-second run rx5700-offline-20261130-023722Z completed without GPU removal or observed TCP/UDP endpoints; it still had 362 Budget-null buffer and 43 valid missing texture uses across 11 high-draw intervals, 2.05 fps median. Different scene coverage prevents a before/after performance claim. CI at 5663c46 passed standard and diagnostics Clippy plus workspace tests.

An isolated priority-copy reap experiment was not merged: it reclaimed zero copies when the 64 MiB cap filled because those copies were still held. Its 120-second run rx5700-offline-20261130-022856Z later hit DXGI_ERROR_DEVICE_HUNG near 9.07 GB combined DXGI usage; it did not establish a safe cap increase. The active-copy overlap (a wide view crossing two live copies), priority-cap denials, long-run GPU stability, gameplay and 30 fps remain unresolved. PR #1405 (ad2025a433) is a GPU-side cut-view copy design reference but is stacked and conflicting; it was not integrated. Full evidence is in docs/graphics-probe.md. The PR remains draft.

Texture pressure trials (83c4dc7)

Two isolated eviction variants were tested and excluded from this PR. A two-frame recent-use window fired once, reclaimed 48.5 MB, then the GPU was removed near 9 GB combined DXGI use (rx5700-offline-20261130-025358Z); a previous unmodified long run also failed near that point. A narrower variant kept ten-frame protection and bypassed the quiet pause only after closed-cap placement misses. Its DRED run completed but still had 1,334 valid missing texture and 1,073 Budget-null buffer uses (rx5700-offline-20261130-030909Z). The same-settings main-branch DRED control had 409 and 1,410 respectively (rx5700-offline-20261130-030122Z). They bound different shader sets, so no performance or visual improvement is established. Both DRED runs observed 0/0 TCP/UDP endpoints and no device removal. The code variants are not merged; docs/graphics-probe.md records the counters and remaining coherent-copy and shader gaps. The PR stays draft.

RX 5700 XT loading-plane alpha fix (91e67ec)

The loading-screen red flash was reproduced in the final swap chain and traced back to PresentX plane 1. In the guarded baseline, frame 4120 had red RGB over 229,979/230,400 preview pixels, while 14,373/14,400 sampled source alpha values were zero; plane 0 was transparent black. The premultiplied compositor previously added that source RGB even under zero alpha. The new overlay pixel shader clamps RGB to alpha on hardware AMD adapters without ray traversal; other adapter paths retain their existing shader. This does not modify the title archives or video decoder.

In an isolated guarded repeat with the clamp enabled, the source-red trigger captured frame 3262 with source_red=true, final_red=false: its source plane remained red and the final image was mostly black. The two runs had verified exact-loader inbound/outbound WFP rules, 0/0 observed TCP/UDP sockets, and no GPU removal. The integration branch then passed 349 active diagnostics GPU tests (three ignored), strict diagnostics Clippy, a no-default build check, and a short guarded RX 5700 XT launch with clamp_overlay=true; the user saw the intro video on that launch. Earlier black-video reports are intermittent and not yet explained. Loading artwork can still be incomplete on some frames, and the world graphics/resource/FPS gate remains failed. The separate GPU-stitch experiment and its diagnostic capture code were not merged.

Follow-up integrated guarded loading run rx5700-offline-20261130-045938Z lasted 4.5 minutes. The live window showed two successive illustrated loading images clearly at 29 and 26 fps; no full-screen red or purple flash was seen in those sampled views. The run completed without GPU removal and with 0/0 observed TCP/UDP endpoints under verified exact-loader inbound/outbound WFP blocks. It did not reach the world, so world resource coverage and playable frame rate remain unverified. CI at 91e67ec passed.

Windows launcher startup fix (fad5757)

The double-click Launch VIctory.cmd entry point uses Windows PowerShell 5.1. Its UI plan validation called [double]::IsFinite, which is unavailable on that runtime, so the launcher failed before the form was usable. The three LOD checks now use the supported IsNaN/IsInfinity methods. The launcher test suite now exercises -ValidateUi under Windows PowerShell in addition to PowerShell 7; both passed locally, including saved-settings validation. This does not change game rendering or the offline firewall gate.

Launcher title identity gate (7a57e78)

Two user launcher sessions selected E:\GTA6.Xbox.v1.0.2.1-CYBERLEEK-native-stage\game_scarlett_master.exe, reported by the loader as unknown BLAKE3 385bffaa595207ef57b4a15310924c31668c136894f351bac5969f71ab8d9aef, and terminated on the same title-side 0x80000003 breakpoint at image RVA 0x1330a44 shortly after menu input. A guarded 60-second reproduction with that executable and cooked textures disabled produced the same exit, no GPU removal, and 0/0 observed sockets. A matched guarded 60-second run with the original recognized Series 1.0.2.1 executable remained up with no GPU removal or observed sockets. These tests isolate the modified executable as the material difference; they do not prove the internal reason for its title assertion.

The inspect CLI now prints the known-build label from the same identity table used by run. The GUI launcher checks that identity after the optional build and before starting the game, giving a clear path-specific error for unknown builds. This preserves the original title files and leaves direct CLI experimentation available. Windows PowerShell launcher validation and 30 victory tests passed locally; strict Clippy passed. The repository-wide rustfmt check still reports pre-existing formatting differences outside this change.

CI at 7a57e78 passed Clippy, diagnostics Clippy, and workspace tests.

RX 5700 XT FSR 3.1.6 dispatch coverage (aca2758)

The existing host bridge already selects FidelityFX upscaler 3.1.6 on this RX 5700 XT. The guarded 1080p run rx5700-offline-20261130-081956Z reached the high-draw world and returned success on its first 1280x720 to 1920x1080 host dispatch. Context creation alone had previously been easy to mistake for a working upscaled frame. The bridge now logs dispatch attempts and failures at bounded intervals, and the diagnostic analyzer records provider, dimensions, first result and reported counts. Its regression test distinguishes context-only from actual dispatch. The guarded instrumented repeat rx5700-offline-20261130-082900Z reported four host dispatch attempts and zero failures. It translated 1,316/1,316 bound shader paths, observed zero unexpected dropped-command reasons and no GPU removal or TCP/UDP endpoints under exact-loader inbound/outbound blocks.

The earlier 45-second world window translated 1,265/1,265 bound shader paths but measured 0.9 fps median, 797 valid null texture uses and 166 Budget-null buffer uses. The closed-cap texture allocator mostly lacked reusable heap ranges (4,067 deferred sampled textures in one interval, zero driver placement rejections). The shorter instrumented window hit a 13.5-second transition frame, so its 0.1 fps median is not a comparable steady-state result. Two unbound shader translation failures and intentionally suppressed ray traversal remain. The host bridge covers upscaling, not frame generation or software ray traversal; this change does not claim full GPU command coverage, 30 fps, or playability. Full run details and limits are in docs/graphics-probe.md.

Local checks: cargo test -p victory-hle --features diagnostics --offline (153 unit, one FidelityFX integration, one DLL planting integration passed), cargo clippy -p victory-hle --features diagnostics --all-targets --offline -- -D warnings, 13 analyzer tests, and git diff --check passed. The PR stays draft while resource admission, ray fallback and frame time remain open.

Follow-up allocator audit (ee2bd23)

The suggested 3 GB render-target reserve comes from a different fork. This branch has no VICTORY_CARD_ROOM_FOR_TARGETS_MB reserve; it admits streamed textures under 85% of the current DXGI local budget and an 8 GB local-plus-system guard in the guarded test. At a late world sample it used 4,827 MB local plus 4,174 MB system, already over that combined guard. Its existing census measured 2,519 MB of GPU-written host textures; 1,368 MB were held only through heap views and had no known-use stamp in 30 frames. Those are a useful lifetime investigation target, but releasing them directly would lose GPU-generated contents that a future bindless read may require. docs/graphics-probe.md records the exact evidence and the slot-invalidation/replay requirement. No untested reserve or target-eviction change was merged.

Reviewed Ajamix/victory-rdna1 at f511bead42 (base snapshot f347e33fc6). It reports 6.6 fps median on an RX 5700 XT with Series S, using VICTORY_LOOKUP_CACHE=1, VICTORY_HEAP_SYNC_CUT=1 and the plain upscaler. Its ray path remains off by default. This integration branch has a substantially different descriptor sync and shadow-copy allocator, and its current FSR 3.1.6 host dispatch succeeds. The fork's heap sync cut concerns host heaps with fewer title slots than the title heap; it is not evidence of a benefit for this AMD run. Our measured world costs include 1,900–2,200 draws/frame, ~100 ms GPU time, and ~100 ms/frame in probe callbacks in one interval. No source was merged from the fork without a controlled compatibility and performance comparison. Its lookup cache is a candidate for a separately gated, measured adaptation after checking copy lifetime and concurrent invalidation.

Pending task PR: registered-buffer lookup cache (blkph0x/VIctory#1)

blkph0x/VIctory#1 (task/rdna1-lookup-cache, commit 2577335 on base ee2bd23) adapts the fork's VICTORY_LOOKUP_CACHE as an opt-in, registered-buffer-only cache with weak handles. Its lookup epoch is counted under the buffer table's lock: after a registration is inserted, and before an unregistration or copy eviction removes an entry. The first draft of this port counted eviction before taking the lock, which could keep returning an evicted copy. Unit tests cover both orderings and fail when the order is reverted. Local workspace Clippy (both feature sets), serial workspace tests and the asset policy pass. Status: pending, not included in this build. Fork Actions are not enabled, so the task PR has no CI run yet, and no RX 5700 XT world run has measured the cache on this branch. Upstream #3535 at c0786ef57c overlaps but was not adopted (strong handles, registration counted after the lock is released, eviction not counted).

Pending task PR: launcher title check under Windows PowerShell 5.1 (blkph0x/VIctory#2)

blkph0x/VIctory#2 (fix/launcher-ps51-stderr, commit 8fb484a on base ee2bd23) fixes the launcher identity check added in 7a57e78. Assert-SupportedTitle ran victory.exe inspect with stderr redirected while $ErrorActionPreference was 'Stop'. Under Windows PowerShell 5.1, the double-click launcher's runtime, an ordinary INFO tracing line on stderr (for example copystat's large-heap-allocation message for files over 32 MB) became a fatal NativeCommandError before the exit code was checked. The check now runs inspect with a local 'Continue' preference and NO_COLOR=1, and decides failure only by the exit code, which it reports together with the captured output. A new launcher-suite regression check runs the real function under powershell.exe with a stand-in loader that writes INFO to stderr. It fails on ee2bd23 and passes with the fix. Status: pending, not included in this build. Fork Actions are not enabled, so there is no CI run, and repository CI does not exercise PowerShell scripts. The unmodified launcher suite under PowerShell 7 and a real recognized-title launch are still pending on the user's machine. No open upstream PR touches scripts/launch-victory.ps1. #2227 (5aebbc493b) and #2670 (09d847e669) change loader stderr logging, but neither removes the need for this fix.

Pending task PR: constant Dot4AddI8Packed operands on RDNA1 (blkph0x/VIctory#3)

blkph0x/VIctory#3 (task/rdna1-dot4-constant, head c82ad06 on base ee2bd23) carries upstream #2408 at 23d9be485b unchanged (KainanP's two commits) and adds an RDNA1 test and note. victory-rdna1 and upstream #1782 found that the RX 5700 XT driver zero-extends the bytes of a constant multiplicand; victory-rdna1 saw its FidelityFX upscaler go white. This branch passed constants straight to dot4AddPacked.i32. #2408 sums a multiplicand known before run time by hand, including constants moved through v_mov/s_mov, which victory-rdna1's operand-only check misses. On this RX 5700 XT, both dot4 constant tests fail on the hardware device with the constant detection disabled and pass with it; WARP passes either way. Local workspace Clippy (both feature sets) and serial workspace tests pass. Status: pending, not included in this build. There is no CI run (fork Actions are not enabled). In-game effect is expected only with the title's own upscaler (VICTORY_FIDELITYFX_DIR unset), not the default host-FidelityFX path. #2536 at a3a18d63b5 duplicates #2408 and was not taken.

Pending task PR: opt-in mouse look for the keyboard stand-in pad (blkph0x/VIctory#4)

blkph0x/VIctory#4 (task/rdna1-mouse-look, head 2a1c483 on base ee2bd23) carries upstream #2182 at ab06200612 (denkencar-sketch's two commits; the conflict with this branch's ungated VICTORY_KEYS was resolved). It is opt-in through VICTORY_MOUSE_LOOK=<sensitivity> and never samples the mouse while a host pad is active. Two parts of victory-rdna1's VICTORY_MOUSE are added on top. Movement is averaged over VICTORY_MOUSE_WINDOW_MS (default 100 ms), so a title at a few fps still reads a short movement. LMB/RMB pull RT/LT, and the click that focuses the window is ignored until released. Unit and mutation tests pass, and so do local workspace Clippy (both feature sets) and serial workspace tests. Status: pending, not included in this build. There is no CI run, and camera control has not been tried in the title. #1157 (d67e37dcd9, needs rebase), #3494 (58c114e73a, captures the mouse with a pad connected) and #3345 (470bc2df60, full GTA-style remapping) overlap and were not taken.

Pending task PR: pixel-shader barycentrics via #3588 + VICTORY_BARY_EMULATE geometry-stage fallback (blkph0x/VIctory#5)

blkph0x/VIctory#5 (port/rdna1-bary-emulate-2, head 4f2940b on base ee2bd23) merges upstream #3588 at 6f3244873a (preserving all 12 upstream commits and authors: Claude, jaschinski97-ops, zed6000) and adds geometry-shader barycentric emulation (VICTORYBARY + barycentric_gs) adapted from michi-feny (01a77ea/319eb4a in #3588's discussion) and Ajamix/victory-rdna1 (f511bea, GPL-3.0-or-later) behind VICTORY_BARY_EMULATE. Emulation is off by default when the host supports native SV_Barycentrics, on by default when the host lacks it (RX 5700 XT / RDNA1), =0 forces native-only, and =1 forces emulation; emulated shader-cache entries are keyed separately from native entries, and logs report whether each barycentric pixel shader is emulated, natively supported, or dropped. Synthetic GPU tests on the RX 5700 XT confirm native SV_Barycentrics pipeline creation fails while the emulated VICTORYBARY + barycentric_gs pipeline validates with dxil.dll, builds, and renders unequal-w (1, 2, 4) perspective-center and screen-linear-center (I, J) weights within 1e-3 on both RX 5700 XT and WARP. Local workspace Clippy (both feature sets) and serial workspace tests (1,019 passed, 0 failed, 12 ignored, including asset policy) pass. Status: pending, not included in this build. Fork Actions are not enabled, so there is no CI run, and in-game hair/head/transparent rendering has not been verified on the RX 5700 XT yet. Upstream #3335 (e495d2dd, open CHANGES_REQUESTED with mojibake in lower.rs) and #3553 (1101cd9d, stacked on #3335 without #1738) overlap and were not taken.

Pending task PR: mesh compute fallback batching past 64 groups and overflow diagnostics (blkph0x/VIctory#6)

blkph0x/VIctory#6 (fix/mesh-fallback-groups-2, head b6e2659 on base ee2bd23) removes the silent 64-group direct truncation and 8-record / 64-group indirect truncation in the RDNA1 mesh compute-to-vertex fallback (crates/victory-gpu/src/mesh_draw.rs) without adding permanent VRAM overhead. In rx5700-offline-20261130-011410Z, 910 pipelines ran on the mesh fallback (including [mesh 005fe88ec1bdc0c7, pixel 93667197d3d05e1c]) and 61 mesh buffer sets already held 135 MB at GROUPS = 64. Rather than allocating a large ring buffer, the compute producer now takes a 1-dword base_group root constant (b0 in space 3) added to SV_GroupID.x for Input::MeshGroup and culls fallback primitives naming vertices >= max_vertices.min(threads) (informed by Ajamix/victory-rdna1 f511bea, credited in the commit trailer). Direct dispatches split into batches of VICTORY_MESH_FALLBACK_GROUPS (default 64); indirect dispatches expand up to VICTORY_MESH_FALLBACK_RECORDS (default 64) records across VICTORY_MESH_FALLBACK_INDIRECT_PASSES (default 4, up to 256 groups/record) with GPU-side overflow counters drained in HostList::end_flight. Once-per-shader warnings (naming mesh and pixel shader hashes) and per-interval mesh fallback capacity (interval) logs report batched and truncated work. Synthetic GPU tests for base_group + out-of-range index culling (RX 5700 XT, DXIL validated), >64-group batched rendering (RX 5700 XT + WARP), and multi-pass indirect splitting/overflow readback (RX 5700 XT + WARP) pass. Local workspace Clippy (both feature sets) and serial workspace tests pass. Status: pending, not included in this build. Fork Actions are not enabled, so there is no CI run, and in-game verification on the RX 5700 XT (to confirm whether missing hair/body parts/clothing are caused by 64-group truncation) remains pending. Overlapping upstream proposals #1648 (d62ba28c) and #961 (31568ced), plus related 3D-grid PRs #2996 (5385cc62) and #2624 (22f5207f), were reviewed and left independent.

Pending task PR: opt-in bound-draw texture priority, keep-views, and RT cap (blkph0x/VIctory#7)

blkph0x/VIctory#7 (fix/texture-admission-null-views, head c6a2aaa on base ee2bd23) addresses missing hair/body/clothing/transparent textures under closed-cap 8 GB RDNA1 memory pressure without raising DXGI or combined memory caps. Quantitative log analysis of rx5700-offline-20261130-081956Z (797 null texture uses; 7,963 recycled attempts, 276 admitted / 3.5%, 7,687 deferred / 96.5%, 8,405 no_existing_range) and -082900Z (1,443 null uses; 4,769 attempts, 82 admitted / 1.7%) confirms 100% of shader-used null texture views are host_copy_unavailable: background retry_observed_textures() consumed 63/63 (100%) and 125/126 (99.2%) of recycled admissions in intervals 4–5 ahead of bound table draws, nine live 3840x2160 1-mip 16:9 RT/DSV targets occupied 296 MB during 1080p runs, and HostHeap::mirror_with nulled valid views across same-texture rewrites before replacements existed. Three opt-in (off by default) A/B switches are added: VICTORY_STREAM_BOUND_PRIORITY=1 (prioritises bound-draw table misses ahead of observed-heap retries hottest/freshest/smallest first, defers speculative unmade View::Shader syncs under closed cap, and orders make_read smallest-first under closed cap), VICTORY_KEEP_VIEWS=1 (preserves valid host views across same-texture rewrites until replacements exist; adapted from Ajamix/victory-rdna1 f511bead42, GPL-3.0-or-later), and VICTORY_RT_CAP=<W>x<H> / VICTORY_RT_CAP_KEEP=<fmt,...> (caps oversized 1-mip 2D ~16:9 render/depth targets with a CopyTextureRegion dimension clamp guard; adapted from Ajamix/victory-rdna1 f511bead42), plus an always-on per-interval texture admission interval log. High-risk VICTORY_LEVELS_ON_DEMAND tiled mips (upstream #2389, #3647, victory-rdna1 tiles.rs) are deferred with a staged adoption plan in docs/graphics-probe.md. Targeted unit and live GPU tests (9/9) pass with VICTORY_D3D12_DEBUG=1 on both RX 5700 XT and WARP; local workspace Clippy (both feature sets), serial workspace tests (999 passed, 0 failed, 12 ignored), xtask policy (256 files ok), and git diff --check pass. Status: pending, not included in this build. Fork Actions are not enabled, so there is no CI run, and in-game A/B verification on the RX 5700 XT remains pending. Overlapping upstream PRs #3848 (856f653557), #3875 (e7d14ae788), #2389 (6b91df4a74), #3647 (5a99fb539d), #2872 (f5497882ca), #3276 (ddc621b904), and #3444 (c52a07494b) were reviewed and left independent.

victory-rdna1 candidates not ported (f511bead42)

  • VICTORY_IDLE_LISTS: not applicable as is. victory-rdna1 detaches a host list from the title's list at every submission (about 100 a frame) into a global idle pool that defaults to 512. With 512 idle lists plus those in use, it hit "Kernel memory failure"; VICTORY_IDLE_LISTS=32 caps that pool. This branch keeps host lists per title list and only replaces one when a list is reset while a queue still holds it. Those go to a spare pool capped at 64 (list.rs recycle). This branch's documented ID 834 "Kernel memory failure" resets occurred under texture-streaming and nonlocal-memory pressure (about 4.75-4.84 GB nonlocal); none was attributed to host-list memory. No change was made. A spare-pool count and its kept scratch bytes in the frame line would be needed first to justify a cap.
  • VICTORY_BARY_EMULATE: the problem is present, but the port is deferred. Pixel shaders that read barycentrics directly are refused at translation (lower.rs Val::Missing("barycentrics read directly")), so their draws are dropped (for example pixel 5067d502a1b4ffb4; victory-rdna1 reports missing heads and hair). The emulation, a geometry stage that writes one-hot corner weights as a noperspective interpolant, needs native pixel-barycentric lowering underneath it. Only the competing unmerged upstream #3588 (6f3244873a, +1,462/−192) and #3335/#3553 (e495d2dd4d/1101cd9d6a) provide it. The emulation itself is michi-feny's cool_fox 01a77ea/319eb4a, proposed in #3588's discussion, and is what victory-rdna1 carries. The next step is a separate task PR: adopt #3588 (or #3335) here, then add the emulation behind VICTORY_BARY_EMULATE. victory-rdna1's README pairs it with an "RT cap", but no matching switch exists in its code.
<!-- greyfinch-sync:Marvisak/VIctory:issue:5541026969 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3745). Originally posted by [blkph0x](https://github.com/blkph0x) on 2026-11-28T14:15:16Z. --- ## Scope This is the complete source-only RX 5700 XT/offline-launch work from this branch. It adds a guarded Windows launch and diagnosis flow, an opt-in cooked-texture path, and renderer fixes found while tracing the first world frames. It does **not** establish a playable or 30 fps RX 5700 XT build. ### Launch, isolation, and local diagnostics - Add a four-tab Windows launcher (Game, Graphics, Performance, Debugging) with saved settings, detected GPU, 720p/1080p/native/custom profiles, title quality/effect controls, a master shadow switch, explicit experimental ray-tracing control, 85%-of-current-DXGI-budget VRAM slider, root-buffer system RAM slider, and one-time shader/pipeline prebuild. - Add local shader, texture, sprite/target, frame, DRED, coverage, and GPU-timing controls. Full-resolution presented-frame capture is opt-in; target readbacks retain their reduced preview size. - Build offline, verify exact title/loader inbound and outbound WFP blocks including loopback before launch, and keep launch plans/logs in checked fixed-local paths. Reject UNC, mapped-network-drive, and reparse paths for launcher state, game inputs, selected cook inputs, and output roots. Pin the loader's cache, data, and config to checked local locations so inherited variables or a game-folder `victory.toml` cannot redirect writes. - Add a bounded RX 5700 XT world-run harness with automatic Enter, frame/target captures, shader and descriptor coverage, budget accounting, optional DRED/exit tracing, and strict diagnostic gates. The native first-run path builds offline, logs locally, checks WFP, and limits its job to one title process. - Add source-only native runtime/shim build and first-run scripts. No game executable, DLL, RPF, decoded texture, screenshot, cache, or log is part of this PR. ### Graphics and texture handling - Add title settings edits for resolution and quality, 720p presentation/window limits, Series S/FidelityFX controls, compute-to-vertex mesh fallback, a guarded RGB9E5/shared-exponent path, shadow and ambient fallback controls, and additional shader lowering/validation and capture probes. These are compatibility/diagnostic paths, not a general shader-quality compiler setting or true render-target downsample. - Improve host texture admission and retry after temporary memory pressure, descriptor/used-null accounting, view/materialization diagnostics, copy/readback handling, and placed-resource/buffer management. Adapt the GPU-written texture alias synchronization from #3170 for CopyResource, CopyTextureRegion, and readback. - Keep the exact observed 1024² BC3/11-mip raw-block copy destination's top mip before its first host creation, with a 4 MiB concurrent extra-allocation cap and existing-heap-only behavior after the stream budget closes. This fixes the traced skipped mip-0 copy without broadly admitting all large textures. - Adapt #3736 so every detected device removal carries DRED data, #3689's half-float capture preview behavior, #3652's full-resolution presented capture option, and #3542's fail-fast check for missing shader warm-up input roots. ### One-time cooked profiles - Add semantic offline texture cooking for separately supplied, classified 2D source images (color, normal, material, cutout, UI/detail) and 720p/1080p outputs. The menu's **Cook verified textures...** action runs cooking, builds/validates a profile, and writes local logs. - Runtime substitution is opt-in and limited to explicitly verified same-format BC mip identities, with original detiled-mip and cooked DDS BLAKE3 checks, fixed-local input checks, a bounded cache, and original-upload fallback. Original title archives are retained. This is not automatic replacement of every texture, render target, sprite, atlas, BC6/HDR image, or material. ## Upstream PR review and decisions I inventoried the titles and bodies of all **1,816 open PRs** in the final review snapshot and inspected the renderer, capture, shader, streaming, and CLI candidates relevant to this branch. New #3737–#3743 candidates were reviewed separately as the inventory changed. | PR | Decision | Evidence | | --- | --- | --- | | #3170 GPU-written alias copies | Adapted | Its new copy regression was red on this branch's baseline (all-zero readback), then green with the synchronization fix; focused GPU tests pass in diagnostics and no-default modes. | | #3689 half-float capture PNG | Adapted | Focused test passed on the PR head and after integration; malformed rows are rejected. | | #3652 full-resolution presented PNG | Adapted | Focused test passed on the PR head and after integration; the option does not expand target readbacks. | | #3542 missing warm-up roots | Adapted | Focused test passed on the PR head and this branch; missing input fails before creating an apparently successful cache. | | #3736 complete DRED removal reports | Adapted | A pure removal-data regression was red on this branch before the change, then green (2/2); submission reports include DRED once, and non-submission failures now retain it too. No hardware removal occurred in the latest game run. | | #3537 RGB9E5 view compatibility | No cherry-pick | Its focused test passes upstream, but this branch already has a broader R32_UINT/shared-exponent alias bridge and the patch conflicts with that path. | | #3647 partial-mip clamp | Deferred | Its format tests pass, but it cannot restore the missed BC3 mip-0 copy and changes explicit LOD/view semantics without a game validation. | | #2297 first-use upload | Deferred | Its test does not cover this branch's submission ordering, which hoists texture uploads ahead of the lists that use them. | | #1272, #3706, #3543, #3529, #3414, #3588, #3670, #3584, #3715, #3687 | Deferred | These are distinct paths, overlap existing local fixes, or lack evidence for the observed used-null/budget failure; see the issue-specific tests and diagnostic coverage below. | | #3737–#3740, #3742–#3743 | Deferred | Newly opened narrow DXIL or diagnostic-ranking optimizations. Their PRs do not report game-frame measurements and do not address the current admission failures. | Please retain credit for the adapted upstream contributions: #3170 by fuzeofficlal, #3542/#3652/#3689 by andrewpozdnakov7-jpg, and #3736 by Ingenioeren. ## Verification - `cargo test --offline --workspace --locked`: pass (including GPU, shader, runtime, and asset-policy tests; the repository's declared ignored benchmarks/reference-data tests remain ignored). - Both CI Clippy modes pass with warnings denied: `cargo clippy --offline --workspace --all-targets --locked -- -D warnings` and the same command with `--all-features`. - Diagnostics and no-default focused alias/BC3/capture tests and checks: pass. `cargo check --offline --manifest-path apps/victory-native-runtime/Cargo.toml`: pass. - Offline release native runtime and all shim DLLs: built successfully to an ignored test output directory. First-run helper rejects a requested two-process job. - Python cooker/profile/diagnostic test scripts: pass. The one-time menu cook completed on a real classified 4K source pair, produced a separate output profile, and validated one 720p original-mip identity. This is a cooking/verification proof, not evidence that the current game scene sampled that texture. - Launcher menu/negative-path suite, preflight UNC/mapped-drive/junction rejection, PowerShell syntax, `git diff --check`, and `cargo xtask policy`: pass. The GUI form was constructed and validated programmatically; a full visual click-through of its Windows form was not available through the computer-use surface. - Controlled RX 5700 XT / Ryzen 3900X 720p world run: exact loader WFP inbound/outbound/loopback preflight passed, TCP/UDP monitor maxima were 0/0, the world frame completed, 1,773/1,773 bound shader paths translated, zero unexpected drops, and no GPU removal. The BC3 destination retained mip 0 (`first_host_dropped=0`). **Strict graphics gate failed:** median 1.3 fps, 3,069 shader-used valid texture-null events (all host-copy-unavailable), and 721 used buffer Budget nulls. Texture retry ran 5,018 times and recovered 697 views, but the combined 9 GB stream admission cap remained under pressure. Socket sampling is diagnostic; WFP verification is the isolation gate. These filters apply to the title/loader executable, not arbitrary preparation/debugger processes. The raw C first-run helper requires its protected PowerShell wrapper; direct invocation is not an isolation gate. ### Follow-up diagnosis on this branch - Added a bounded shader-use-weighted identity census for null texture views (source, title address, dimensions, format, failure reason, example pipeline/root slot); the 120-second offline world run had no census overflow and identified a repeatedly used 1x1 format-41 missing texture. This is shader-use evidence rather than a count of every descriptor materialization. - Added placement-failure counters and fixed strict-run shutdown to wait for drop, buffer, and texture reports through the latest FPS row. The previous strict run stopped between its final FPS line and reports, leaving one interval unclassified. PowerShell parsing and the timestamp replay confirmed that race. - Controlled 720p RX 5700 XT run with full coverage: 1,771/1,771 bound shaders translated, 1.7 fps median, 1,395 used null texture events in 14 classified intervals, 7,554 used Budget-null buffer events, zero observed sockets and no GPU removal. The strict graphics gate failed. One final interval is unclassified because this run predates the harness fix. - The first instrumented repeat reached a world frame, then the title's known watchdog deliberately wrote to null at image RVA `0x23cf683` and exited `0xc0000005` before the cap closed. The title's Breakpad upload was blocked by the HLE network layer; WFP and the socket monitor observed no endpoints. This run cannot diagnose placement pressure. - A repeat with full view/pipeline coverage disabled completed 90 world seconds: 1,724/1,724 bound shaders translated, all 10 drop/used-null intervals classified, 1.55 fps median, 61 valid used null texture events, 477 used Budget-null buffer events, zero observed sockets, no GPU removal or watchdog. Of 1,078 reuse-only sampled-texture attempts, 897 succeeded and 181 deferred. All 189 failed placement sub-attempts lacked an eligible existing heap range; none were unplaceable or rejected by D3D12. Different frames and coverage overhead prevent a causal claim about the watchdog or the miss-count difference. - `cargo test --offline --workspace --locked`, both strict workspace Clippy modes, the diagnostic analyzer tests, PowerShell syntax, `git diff --check`, and `cargo xtask policy` pass on `cd52b2b`. The PR stays draft because the live graphics gate fails. - A paired offline two-minute `uiOverlay=true/false` test held the 720p launch and loader binary fixed. Both arms set the secondary title dimensions to 3840x2160, enabled the secondary flag, listed a 4K PresentX plane, and created 17 4K textures; neither reached the world. The original settings were restored byte for byte, and each arm saw 0/0 TCP/UDP endpoints under verified WFP blocks. This rules out `uiOverlay` alone as the switch for the extra 4K path. See `docs/shader-audit.md` for the observed addresses and limits. - A focused offline CDB hardware watchpoint caught the secondary 4K flag becoming one during a 0x1e8-byte `memmove` of display state into the prepared image globals. The copied state already held 3840x2160. The title copy site is image RVA `0x19f4e15`, called via `0x5804379`; the original object-state producer remains unidentified. The harness now accepts a local custom CDB command file with `-TraceExit` while retaining the exact-loader WFP preflight. PowerShell syntax, its negative option gate, and `git diff --check` pass. See `docs/shader-audit.md` for the stack, limitations, and raw-run identity. - A second offline hardware watchpoint followed the secondary width from its object constructor: it starts at zero and becomes 3840 when a later 0x1e8-byte stack temporary is copied into the source object at title return RVA `0x43a48de`. The adjacent source fields then hold 2160 and flag one. The earlier zero-valued initialization pass and later 4K copy show multiple settings passes; the operation selecting 4K is still not identified. - Reviewed #3754 after its author explicitly flagged interaction with this PR. Its unlocked guarded-page read relies on an `OPENED` counter for every page opening. This branch's run-batched `open_guarded` removes pages without such a counter; importing #3754 unchanged would permit stale saved bytes. It also has a reported rare unresolved test failure and no RX 5700 XT world measurement. I have not imported it. Any combined implementation must bump each page's counter before the batched `VirtualProtect` and pass concurrent saved-byte tests and a controlled game run. - Refreshed the open-PR inventory before this update. New #3744 (literal min/max shader emission) and #3746 (XMA FFT stages) have focused upstream tests, but no measured benefit for the observed heap-range shortage; neither was imported. Upstream `main` has not advanced past `63bcca4`. ## Launcher persistence and local file discovery - The Game tab searches the launcher folder, or a selected local folder, recursively for the title EXE and a complete pair of PC FidelityFX DX12 DLLs. It skips reparse points, rejects network paths, reports ambiguous matches, and offers pickers when files are missing. - Save settings and Close now persist every menu choice, including incomplete paths, to local JSON. Writes replace the old settings atomically. Launch offline still validates the complete plan before running. - Verified the menu under Windows PowerShell 5.1 and passed the headless launcher suite, including reopen/roundtrip, incomplete draft, nested discovery, incomplete DLL pair, ambiguity, and unsafe-path rejection. `cargo xtask policy` passed (245 files). ## Open work / review focus The latest change makes bounded texture eviction keep scanning after an oversized candidate, so smaller old textures can release reusable heap ranges within the same per-frame allowance. Targeted idle and budget-driven regression tests pass; the RX 5700 XT world effect remains unmeasured. The 4K source trace now reaches the title display callback's alternate width/height fields; their earlier setter is still under investigation. The diagnostic build now logs up to 24 distinct closed-cap placement misses with each texture's shape, allocation size, and alignment. This can be compared against the existing reusable-range census in the next guarded run. All 344 active diagnostics GPU library tests pass when run serially. 1. Reclaim or prioritize sampled-texture heap ranges under the 9 GB cap using the new shader-use-weighted identities and placement-failure counters. The measured closed-cap misses are lack of eligible existing ranges, while earlier cap increases removed the GPU. 2. Resolve the remaining valid texture and Budget buffer nulls, dark/overbright regions, and frame-time cost. The current branch is not verified playable or at 30 fps on the RX 5700 XT. 3. Expand cooked profile coverage only with verified identities and scene-use evidence. Preserve title archives and reject mismatched assets. The PR is a draft because the strict world graphics gate still fails and the change set spans launcher, native runtime, shader translation, texture handling, and GPU diagnostics. Review can be divided by the sections above. ## Verified title-side 720p follow-up (b25cd15) - The Series 1.0.2.1 title constructs a 3840x2160 `uiResolution` object before reading `settings.xml`. The loader now patches only that exact reflected field in the derived image when 1280x720 is selected, and pairs it with a measured 16 MiB UI work-area reserve. Exact original-byte and build-hash checks fail closed; the title EXE and archives remain untouched. A standalone launch previously hit the title's own unused-work-area INT3 with its fixed 82 MiB reserve; the paired patch passed that check without a debugger. - Guarded RX 5700 XT run `rx5700-offline-20261129-023716Z`: 1280x720 PresentX planes and title viewport, first world frame 6,950, 1,786/1,786 bound shaders translated, 231,461 texture view materializations with zero failed paths, zero reported GPU removal, and TCP/UDP monitor maxima 0/0 under verified inbound/outbound blocks. The world was still dark/tiled: median 1.4 fps, 7,675 shader-used Budget null buffer events, and 15 unexpected drop categories. A separate one-minute run without an opt-in environment flag verified automatic launch behavior. - A guarded comparison with `-RootReuseOnly -RootPressureTrimMB 768 -RootSystemMB 4750` reached the world without GPU removal, reduced Budget null buffer events to 96 and unexpected drop categories to zero, but still showed dark/tiled graphics and 0.9 fps median with more draws. These settings remain experimental; the runs are not matched-scene performance comparisons. - `cargo test --offline -p victory` and `cargo clippy --offline --workspace --all-targets --locked -- -D warnings` pass. The first CI run after the initial push caught a collapsible `if`; b25cd15 corrects it. The strict graphics gate remains failed, so this PR remains draft. ## True 720p render-scale and packed sky follow-up (e507f3f) - PresentX and the swap chain are 1280x720. The title's FidelityFX context intentionally renders at 853x480 and outputs 1280x720. Its half-size packed sky R9 input is 427x240; that size was missing from the separate R32_UINT/R9G9B9E5 row-major repack list. A captured 731 input showed `shared_exp=true, separate=false` and visible blocks before the composite. - Added only the measured 427x240 shape. A guarded diagnostic launch confirmed `separate=true`, a 430,080-byte row-major repack, and a smooth captured 731 input/output and next presented frame. A later uncaptured 30-second world run still had block artifacts, despite no GPU removal or observed connections and a 3.75 fps median. Capture readback or later writers may affect the result; the visual problem is not closed. The user-facing `fsrSharpen` and general sharpening are already off. The title's 853x480 input means FidelityFX is not inherently required for 720p output, but replacing it requires a complete host upscale route. - The focused GPU regression test and strict workspace Clippy gate pass; the raw run evidence and limits are in `docs/graphics-probe.md`. Keep this PR draft until the uncaptured world image is usable and frame rate improves. ## Follow-up controls (cbf50fb) - A guarded `fsrQuality=1` settings probe still created the title's FidelityFX context at 853x480 render and 1280x720 output. The original settings XML was restored byte for byte. Sharpening is already disabled in the low profile; this does not prove FFX alone causes the grain because the captured pre-upscale scene is grainy too. - Disabling the 731 world composite through the launcher diagnostic toggle did not eliminate blocks in a normal presented world frame. The remaining artifact cannot be assigned to 731 alone or to a wrong 1280x720 PresentX plane. See `docs/graphics-probe.md` for run identities and limits. - CI had two unrelated parallel GPU test failures from process-global emulator state and tick timing. The entire workspace test suite passed locally with `--test-threads=1`; CI now uses that mode and passed at 24d5e74. The PR remains draft. ## 720p packed output fix and distributed contribution guide (88589b7) - A paired guarded trace localized the remaining large blocks after FidelityFX: the 1280x720 float output was smooth, while the same-memory packed R9G9B9E5 reader and presented image were tiled. The measured 1280x720 shape now uses the existing separate R32_UINT/R9 reader and row-major repack path. The targeted run logged a 3,686,400-byte repack and smooth packed/presented captures. - A later **uncaptured**, normal-shader RX 5700 XT world run (`rx5700-offline-20261129-045813Z`) also showed no large tile grid. All 1,650 bound shader paths translated; valid missing texture descriptors were zero, Budget-null buffer uses were 24, no GPU removal was reported, and the guarded test observed 0/0 TCP/UDP endpoints under verified exact-loader inbound/outbound WFP blocks. The scene remains very dark and the median was only **1.3 fps** over five samples. This is evidence for the block fix in the tested scene, not a playable or 30 fps build. Raw frames and metrics are in the ignored local run folder; the stage comparison and limits are in `docs/graphics-probe.md`. - Adapted the supplied `ai-pr-workflow-starter.zip` into `AGENTS.md`, `CONTRIBUTING.md`, `.github/copilot-instructions.md`, `.github/PULL_REQUEST_TEMPLATE.md`, and `docs/contribution-integration.md`. These keep one evolving task PR and this single cumulative draft for the RX 5700 XT goal. Because the integration branch currently exists in the **blkph0x fork**, task PRs intended for this cumulative build must target `blkph0x/VIctory:feat/offline-launch-debug-rx5700`; upstream `main` PRs do not automatically join it. The guide records review, dependency revision, CI, attribution, and remaining-blocker expectations. No branch protection or custom policy controller is claimed as installed. - Validation at `88589b7`: `cargo test --offline --workspace --locked -- --test-threads=1` passed; both strict workspace Clippy modes (default and `--all-features`) passed; `git diff --check` passed. The full hardware run passed its isolation and world-completion gates but failed the visual brightness and performance goals. Keep this PR draft. ## Related documentation PRs and workflow scope (4098be1) - [#3820](https://github.com/Marvisak/VIctory/pull/3820), reviewed at `db84ddceab5d21b462ee68428309e56241fe5462`, proposes broader agent, contribution, compliance, interoperability, and README guidance. Its CI passed, but it has no review decision and targets upstream `main`; it is pending, not included here. `AGENTS.md`, `CONTRIBUTING.md`, and `README.md` overlap this branch. The proposed resolution is to preserve #3820's author and general guidance if accepted, append this branch's task-PR/fork routing rules, resolve README explicitly, and rerun combined CI. See `docs/contribution-integration.md`. - [#1741](https://github.com/Marvisak/VIctory/pull/1741), reviewed at `d2c9a469e7ae77db0e393def1d593a7a460f07fc`, has useful agent guidance, but maintainer triage says its process requirements need a maintainer decision. It is not a prerequisite. [#3087](https://github.com/Marvisak/VIctory/pull/3087), reviewed at `163befa989f7083106c59610b1adb37773e1557c`, was identified in its discussion as guidance for a different project and is excluded. - This branch's new coordination rules explicitly govern the **fork integration effort**. They are a proposal for upstream review, not a claim that repository-wide policy, branch protection, or custom CI gates have been adopted. #3820's timeline currently shows two commits and no direct mention of #3745, review, or discussion. The two efforts overlap by files and intent, so we recorded the dependency decision rather than claiming an existing agreement. - At head `4098be1`, `cargo xtask policy` and `git diff --check` pass. [CI passed](https://github.com/Marvisak/VIctory/actions/runs/46229701141) both strict Clippy modes and serial workspace tests; the preceding code commit `88589b7` also passed CI. ## 2026-11-29 indirect-light and buffer diagnosis (head a18b6db) Base reviewed: upstream main 63bcca43c6a00a758510398fa43096ce7e4f7df0. This update adds a paired R9G9B9E5 interpretation of the screen-probe UAV before and after the optional ambient pass, plus an opt-in light floor gated to the selected hardware AMD adapter when its D3D12 ray-tracing tier is unsupported. NVIDIA and ray-capable adapters compile the original 13-constant ambient shader and use its original write path. The RX 5700 XT harness exposes CaptureAmbient and AmbientFill with validation for incompatible capture options. Docs record the exact runs and limitations. Evidence: - At ambient 0.6, raw indirect-light median rose from 0.255 to 0.588 and the image washed out. At 0.35 with the AMD-only fill, the paired target rose from 0.00073 to 0.343, and the foreground was more readable without that washout. The latter 15-second world window had zero valid missing textures and zero Budget-null buffer uses, but much of the image was still black. The light pass therefore runs, and those two descriptor classes do not explain that captured dark frame. - A 125-second world baseline at the 4,500 MB root-copy cap completed with no GPU removal, 1.1 fps median, 14,089 shader-used Budget-null buffers and 382 valid missing textures. Earlier 4,750 MB long runs hung with 0x887A0007 and empty DRED breadcrumbs. A wider table-preseed trial remained dominated by the same large null ranges and had worse measured counts; it was removed. - Final-source guarded AMD run at ambient 0.1: 1,645/1,645 bound shaders translated, zero unexpected drops, no GPU removal, and zero observed TCP/UDP endpoints under verified exact-loader inbound/outbound WFP blocks. The 0.35 paired-capture run: 1,556/1,556 translated, zero unexpected drops, no GPU removal, and zero observed endpoints. Capture adds frame-time overhead; 30 fps and later-scene usability remain unverified. Related PR revisions reviewed and deferred: #3414 2a6a8c6122 (source of the already-ported opt-in ambient pass), #3529 14dd3b8fd2 (overlaps bounded buffer retry already in this branch), #3457 3d4460a939 (cannot free descriptor-held copies), #3436 13d205c179 (shared sRGB UAV change does not match this packed-light target), and #3378 ca937383da (all bound shaders translated in the measured baseline). No code from these revisions was merged in this update. See docs/graphics-probe.md for capture details and other reviewed PRs. Verification on a18b6db: serial offline workspace tests passed; focused diagnostics ambient tests passed, including host compilation of both shader variants; strict default and all-features Clippy passed; asset policy and git diff --check passed. That verification applied only to the older head. This PR remains draft because dark areas, later valid resource misses, and frame time are unresolved. ## 2026-11-29 shader and lighting follow-up (head 4769a6a) Base reviewed: upstream `63bcca43c6a00a758510398fa43096ce7e4f7df0`. The cumulative branch now includes [#3587](https://github.com/Marvisak/VIctory/pull/3587) at `733f9e8584e2a35cbf0f1e066a2077ad3502f039` with its original commits and authors. Its permlane lowering passed nine focused tests in an isolated merge, then the dumped title shader `a929109552ce1e84` validated and created a D3D12 pipeline on the RX 5700 XT. The two remaining dumped shader failures are pixel barycentrics (`5067d502a1b4ffb4`) and whole-wave f64 work (`6871d6e4b3ac9a10`). [#3588](https://github.com/Marvisak/VIctory/pull/3588) at `6f3244873ab2b7689b4e726f936acb3c0a0bad3e` uses native barycentrics that this GPU reports unsupported; [#2348](https://github.com/Marvisak/VIctory/pull/2348) at `fd010350951e4731580a20ab896c65fe8f83c3ed` advances the exact f64 shader only to a whole-wave lowering failure and has red CI. Both are deferred. [#3663](https://github.com/Marvisak/VIctory/pull/3663) overlaps the included permlane change and was not merged. No NVIDIA or hardware ray-tracing path was changed for these diagnostics. A misconfigured guarded test pointed `-FidelityFX` at the game folder rather than the host SDK `signedbin` directory. The fallback console DLL left the title's jitter-phase-count query output zero, and the title divided by it. The saved minidump and first-chance CDB capture identify the title RVA and object field; `docs/graphics-probe.md` has the evidence. The test harness now requires both host DX12 FidelityFX DLLs before launch, and the analyzer reports abnormal title exits. A corrected-path 420-second high-draw test reached 3D frames and completed without that crash or GPU removal, under verified exact-loader inbound/outbound WFP blocks with 0/0 observed TCP/UDP endpoints. This does not resolve the lighting issue. That corrected-path run still showed almost white outdoor frames, a near-black interior, 38,696 shader-used Budget-null buffer events, 8,993 valid missing texture uses, root-view draw failures, and a 1.7 fps heavy-window median. An opt-in 4,750 MB root-copy/reuse/trim trial reduced Budget-null events to 3,833 over its 180-second window, but the scene was still too dark and its median was 0.9 fps; scene timing differed, so these are not matched-frame performance figures. The GUI already exposes these experimental memory controls. New one-shot diagnostics capture the packed screen-probe light before and after the optional AMD fallback, the color input before FidelityFX, and selected source textures of the temporal resolve. The dark silhouette is present before FidelityFX. Compute `34fb51b8a0312e82` (`CS_ScreenProbes_TemporalResolve_ReflectiveCaustics`) received materialized descriptors but produced near-zero packed light in the sampled scene. Its `R11G11B10_FLOAT` source at `s1+24` was zero, while depth, normals and masks held scene detail. The trace maps that source to the UAV output of two `CS_FinalGather` variants (`2dc364df5d3278b8`, `940c2635dc1312f4`). Their local native dumps have no BVH instruction, so the cause of their zero output remains open; earlier suppressed ray passes are a candidate, not a demonstrated dependency. Raw title shader containers and frames remain in ignored local test folders and are not in this PR. The new `inspect_native` example prints resource declarations and reachable instructions for a local container. Validation at `4769a6a`: guarded RX 5700 XT runs recorded no observed TCP/UDP endpoints or GPU removal in the stated windows; focused GPU library tests passed (346 passed, 3 ignored); serial offline all-features workspace tests passed; strict all-targets/all-features Clippy passed; `git diff --check` passed. Upstream CI [run 46256201682](https://github.com/Marvisak/VIctory/actions/runs/46256201682) passed Clippy, diagnostics Clippy, and tests at this head. The PR stays draft: the legacy AMD path is still dark in parts, has valid resource misses and two shader gaps, and is far below 30 fps. Reproduce the exact stage and resource identities from `docs/graphics-probe.md` before implementing a software light source or changing memory admission again. ## Suppressed-ray trace and controlled fallback review (head 48a75e5) The diagnostics-only trace now records the title bindings of a deliberately suppressed ray shader before host descriptor admission. A null host slot at that point is expected and is not counted as a descriptor-materialization fault. `-TraceShaderHash` accepts comma-separated exact hashes for a single guarded run. The native programs of `CS_RaytraceShadows_Mixed` (`0873f80dd84a3c5c`) and `CS_Primary_GatherVBuffer_WithFar` (`3592426e3e9142d8`) contain `image_bvh64_intersect_ray`; their relationship to the zero FinalGather output is still unproven. Reviewed [#3398](https://github.com/Marvisak/VIctory/pull/3398) at `846362d02355852ff7955ed73545df4863fa88b7` in an isolated worktree based on `4769a6a`. Its root-miss BVH mode passed translation and DXIL validation for the captured primary-gather shader. An isolated RX 5700 XT test used a temporary legacy-AMD-only host gate. It removed suppressed-ray drops and produced limited nonzero screen-probe light, but the world still had a black foreground and broken geometry at 1.7 fps. A same-build, same-offset switch-off control had zero packed-light output, also showed the broken world, and ran at 1.5 fps. The scenes and number of bound shaders differed; aggregate misses are not a matched comparison. #3398 remains deferred and is not in this branch. Ray-capable and NVIDIA paths were not changed. An isolated guarded `VICTORY_STREAM_PRISTINE_MB=16` trial consumed about 16 MB of already allocated texture-heap tail without GPU removal. It still recorded 1,972 valid missing texture uses, 3,389 Budget-null buffer uses, and 0.9 fps median in a different scene. The allowance is not a new default. That later scene exposed a compute translation failure `ceb5eb68cd99cb07` (descriptor read only as data) and an unclassified bound compute shader `d7ad7fcacbe52893`; their exact local containers are being captured for inspection. All three guarded runs verified exact-loader inbound/outbound blocks and observed 0/0 TCP/UDP endpoints. Details and limits are in `docs/graphics-probe.md`. Validation for `48a75e5`: strict all-targets/all-features GPU Clippy passed; serial GPU library tests passed (346 passed, 3 ignored); `git diff --check` passed. A parallel run hit the existing global-cache `table_union_preseed_prevents_small_view_overlap` test, which then passed alone and in the serial suite. Upstream CI [run 46259593187](https://github.com/Marvisak/VIctory/actions/runs/46259593187) passed. This PR remains draft because the world is not yet usable and is far below 30 fps. ## Screen-probe producer trace (head 63a24cb) Base reviewed: upstream `main` `63bcca43c6a00a758510398fa43096ce7e4f7df0`. This commit adds opt-in one-shot captures for FinalGather sources, packed screen-probe producers, and Inject sources, plus a bounded writer-binding trace and corresponding guarded-harness switches. These diagnostics do not change normal rendering or NVIDIA/ray-capable paths. `docs/graphics-probe.md` records the exact runs, command flags, frames, and limits. In the same-process guarded world trace `rx5700-offline-20261129-132546Z`, the deliberately suppressed `CS_Primary_GatherVBuffer_WithFar` bound a 2304x576 R16_FLOAT UAV at title address `0xa63e40000` (`s1+120`). `CS_ScreenProbes_Inject` sampled the same address (`s0+456`) with a materialized descriptor and a nonzero direct dispatch. Its full source readback was zero. An R16_UNORM scene-mask source was populated, but Inject's packed R32 output and the Spatial Filter and Prefilter outputs were all zero in that frame. The downstream FinalGather R9 input was also zero in the earlier paired readback. The PNGs are half-size previews; logged statistics cover every readback texel. The diagnostic decoder now uses the bound sampled-view format for the typeless R16 source, correcting a misleading first preview. The same-run offline test ended without GPU removal and observed 0/0 TCP/UDP endpoints under verified exact-loader inbound/outbound rules. It recorded 160 valid missing sampled-texture uses and 20 Budget-null buffer uses. Its 0.15 fps median includes trace/readback overhead; an uncaptured 30 fps world is not verified. This identifies one broken light-data chain, not all dark geometry. The isolated #3398 root-miss review remains deferred: its AMD-only trial allowed the ray path to dispatch but still showed a dark/broken world at 1.7 fps. No root-miss code was merged into this branch. The additional texture and buffer misses remain open. Validation for `63a24cb`: strict GPU all-targets/all-features Clippy passed, serial GPU library suite passed (346 passed, 3 ignored), PowerShell test-script parsing passed, `cargo xtask policy` passed (254 files), and `git diff --check` passed. Upstream [CI run 46268014650](https://github.com/Marvisak/VIctory/actions/runs/46268014650) passed strict Clippy in both configurations and workspace tests. The PR remains draft because the RX 5700 XT world is not yet reliably usable or at 30 fps. ## AMD render-path and title LOD review (head e7f3e20) Base reviewed: upstream `main` `63bcca43c6a00a758510398fa43096ce7e4f7df0`. This commit adds saved display controls with neutral FidelityFX exposure, a bounded highlight knee, and an AMD-only legacy ambient/display gate by default. It also integrates the byte-verified, opt-in title LOD, small-object cull, and vehicle LOD switches from [#3817](https://github.com/Marvisak/VIctory/pull/3817) at `5611a48cf9547ecfe723d224d8bc8eb873f80875`, with source credit retained. Zero leaves each title setting alone. The three LOD switches are off by default, including on NVIDIA and ray-capable adapters. The launcher and guarded offline harness can reproduce the tested 0.35 / 2.5 / 0.5 profile. Low volumetrics remain off because prior testing produced black floors. The guarded ray-off run with AMD-only ambient/display fallbacks produced a recognizable but dark world, with no GPU removal or observed TCP/UDP endpoints under verified exact-loader rules. The isolated LOD run applied all three expected title sites and measured 2.8 fps median over 45 seconds, with 1,642 valid missing texture uses and 498 Budget-null buffer uses. Some settled intervals reached about 5 fps, but the ground and interior remained too dark. The isolated software-BVH plus LOD comparison, using [#3806](https://github.com/Marvisak/VIctory/pull/3806) at `98cd1e341f191c57101631d37dc770c01f5a088f`, drew more scene detail at 2.3 fps median, with 516 valid missing texture uses and 446 Budget-null buffer uses. It did not remove the GPU and observed 0/0 TCP/UDP endpoints. #3806 and the root-miss experiment #3398 remain deferred; neither shader change is merged here. These are different scenes and cannot support a matched FPS claim. FidelityFX frame generation is not active; only the host upscaler is used. Validation at `e7f3e20`: launcher menu persistence/validation passed; strict all-targets/all-features Clippy passed for `victory`, `victory-loader`, and `victory-gpu`; serial loader and GPU library tests passed, including the exact title-byte golden test; `cargo xtask policy` passed (256 files); `git diff --check` passed. The render-path findings and run IDs are in `docs/graphics-probe.md`. The PR remains draft: neither path is reliably playable or near 30 fps, dark areas and real texture/buffer admission failures remain, and the next code work is targeted light-source correctness plus resource refresh/admission cost. Repository-wide `cargo fmt --check` still reports extensive unrelated formatting differences. Upstream [CI run 46323326755](https://github.com/Marvisak/VIctory/actions/runs/46323326755) passed Clippy, diagnostics Clippy, and workspace tests at `e7f3e20`. ### 30 November diagnostic follow-up (`ad204e8`) The analyzer now reports valid missing textures and Budget-null buffers for the last three complete five-second world intervals separately from cumulative startup totals. Missing or unclassified tail rows remain unavailable rather than appearing as zero. The 12 analyzer tests, `cargo xtask policy` (256 files), and `git diff --check` passed. This is diagnostic and documentation work; no experimental renderer or GPU-specific optimization from this round was merged. Guarded RX 5700 XT runs found that the 720p fast-LOD control had 1,165 Budget-null buffer uses but zero valid missing texture uses in its last three intervals. Isolated descriptor-copy batching based on [#3265](https://github.com/Marvisak/VIctory/pull/3265) at `6c8fc754719e5da3a076d14aef9ae593d279b867` had 261 and zero, with different scene/shader coverage and no defensible FPS gain (3.45 vs 3.15 fps median). The longer 360p ultra-LOD cutscene run reached zero for both tail counters yet remained dark at 3.75 fps median and ended in GPU removal (`0x887A0007`, process `0x887A0005`) as the local DXGI budget fell. All guarded runs observed zero TCP/UDP endpoints. An ambient level 0.6 test made the light buffer uniform and washed out the image. An isolated GI-only software-BVH run was recognizable but measured 1.25 fps. Details and run IDs are in `docs/graphics-probe.md`. #3265 and the GI-only changes remain deferred. The next concrete targets are the actual indirect-light source, bounded root/descriptor retention and refresh cost, and stable comparable hardware runs. The PR remains draft; gameplay and 30 fps are unverified. [CI run 46328649008](https://github.com/Marvisak/VIctory/actions/runs/46328649008) passed Clippy, diagnostics Clippy, and workspace tests at `ad204e8`. ### Depth-light and cinematic check (`aa200b2`) An isolated depth-normal directional fill, gated to AMD adapters without hardware ray traversal, compiled and ran under the exact-loader offline block at an 8,000 MB stream cap. It changed the packed indirect-light target and lit the character, but the presented ground stayed dark, including after correcting the Y-up light direction. A same-settings control showed the same dark ground and bright sky. Different frame numbers and shader sets prevent a matched FPS claim. The shader and harness switch remain isolated and are not part of this PR. A 120-second main-branch control with longer scripted Enter presses still captured cinematic shots at high-draw offsets 0, 30, 60 and 90 frames. It did not verify gameplay or a successful skip. It measured 1.0 fps median, with 567 Budget-null buffer and 223 valid missing texture uses in the last three intervals. The 8,000 MB run completed without GPU removal or observed TCP/UDP endpoints; its shorter duration does not resolve prior longer-run device removals. Details and exact run IDs are in `docs/graphics-probe.md`. The PR remains draft. [CI run 46332078942](https://github.com/Marvisak/VIctory/actions/runs/46332078942) passed Clippy, diagnostics Clippy, and workspace tests at `aa200b2`. The follow-up mapped X-button control (`rx5700-offline-20261130-010242Z`) also remained in cutscene frames through offsets 0/30/60/90. It completed a 120-second guarded window without GPU removal or observed connections, but measured 1.55 fps median and still had 1,359 Budget-null buffer and 276 valid missing texture uses in its last three intervals. Its different scene/shader coverage prevents an Enter-versus-X FPS claim. No skip method or gameplay state is verified. Local `Player` and `SARC0015` save containers exist, but their checkpoint position is unknown. This result is documented at `4548719`; the PR stays draft. [CI run 46333337966](https://github.com/Marvisak/VIctory/actions/runs/46333337966) passed Clippy, diagnostics Clippy, and workspace tests at `4548719`. A follow-up guarded control held mapped X for 20 seconds at five points (`rx5700-offline-20261130-011410Z`). Its captured high-draw frames remained letterboxed cinematic shots; no skip, menu or controllable world was verified. It completed a 120-second window without GPU removal or observed TCP/UDP endpoints, but measured 1.35 fps median and still had 4,608 Budget-null buffer and 76 valid missing texture uses in its last three intervals. This result is documented at `e9babdb`. The scene and resource sets differ from earlier runs, so it is not an FPS comparison. The draft remains incomplete. [CI run 46334365602](https://github.com/Marvisak/VIctory/actions/runs/46334365602) passed Clippy, diagnostics Clippy, and workspace tests at `e9babdb`. ### Wide table resource diagnosis (`3d8e144`) Two guarded RX 5700 XT runs kept the exact-loader inbound/outbound WFP block active, observed 0/0 TCP/UDP endpoints, and completed without GPU removal. The 90-second run (`rx5700-offline-20261130-013025Z`) recovered zero wide table slots with the new read-only coherent-copy reuse fallback; it still counted 54,418 Budget-null buffer and 4,084 valid missing texture uses across 17 high-draw intervals. The 35-second diagnostic run (`rx5700-offline-20261130-013752Z`) showed that a 727,040-byte table view crosses two older, still active 1 MiB host copies. Creating another overlapping copy would split GPU writes, so the overlap denial is correct. It counted 1,270 Budget-null buffer and 1,656 valid missing texture uses across eight intervals. Different scenes and durations prevent a direct rate comparison. The closed-cap texture pool deferred 807 of 1,206 sampled placement attempts in one interval for lack of a fitting existing heap range; after eviction, a later interval admitted all 137 attempts. The commit adds a bounded diagnostic for the top three wide buffer misses per five-second report, a safe reuse fallback when a coherent copy already covers a wide view, and a regression test. It does not resolve active overlapping copies or texture residency, and gameplay and 30 fps remain unverified. Full details are in `docs/graphics-probe.md`. [CI run 46336903929](https://github.com/Marvisak/VIctory/actions/runs/46336903929) passed Clippy, diagnostics Clippy, and workspace tests at `3d8e144`. Local diagnostics GPU tests: 347 passed, three ignored. Related open PRs #3529 (`14dd3b8fd2`) and #3457 (`3d4460a939`) remain deferred; neither solves a view spanning active host copies. ### Closed-cap resource recovery follow-up (`a7fb298`, `5663c46`) On legacy AMD adapters without hardware ray traversal, recycled sampled textures now take the tightest previously used free range in an existing heap. This preserves larger holes for later mip chains; it creates no new heap and does not change other adapter paths. A regression test covers fragmentation. The guarded 60-second run `rx5700-offline-20261130-020028Z` observed hundreds of alternate placements, but still had 738 valid missing texture and 1,237 Budget-null buffer uses. With the GUI's existing 512-pixel texture edge limit, `rx5700-offline-20261130-020718Z` had 224 valid missing texture uses overall and zero in the last three intervals. The two runs reached different scenes and shaders, so their counts are not a controlled A/B improvement claim. Both completed without GPU removal or observed TCP/UDP endpoints. [CI at a7fb298](https://github.com/Marvisak/VIctory/actions/runs/46339736374) passed. A separate bug in buffer-copy eviction left a nulled host slot marked as already made. `5663c46` marks evicted title slots unmade so the next draw or observed heap read rebuilds the unchanged descriptor. It leaves dynamic slots outside the title record array alone. The focused regression and full diagnostics GPU suite passed (349 passed, three ignored). The guarded 60-second run `rx5700-offline-20261130-023722Z` completed without GPU removal or observed TCP/UDP endpoints; it still had 362 Budget-null buffer and 43 valid missing texture uses across 11 high-draw intervals, 2.05 fps median. Different scene coverage prevents a before/after performance claim. [CI at 5663c46](https://github.com/Marvisak/VIctory/actions/runs/46342682464) passed standard and diagnostics Clippy plus workspace tests. An isolated priority-copy reap experiment was not merged: it reclaimed zero copies when the 64 MiB cap filled because those copies were still held. Its 120-second run `rx5700-offline-20261130-022856Z` later hit `DXGI_ERROR_DEVICE_HUNG` near 9.07 GB combined DXGI usage; it did not establish a safe cap increase. The active-copy overlap (a wide view crossing two live copies), priority-cap denials, long-run GPU stability, gameplay and 30 fps remain unresolved. PR #1405 (`ad2025a433`) is a GPU-side cut-view copy design reference but is stacked and conflicting; it was not integrated. Full evidence is in `docs/graphics-probe.md`. The PR remains draft. ### Texture pressure trials (`83c4dc7`) Two isolated eviction variants were tested and excluded from this PR. A two-frame recent-use window fired once, reclaimed 48.5 MB, then the GPU was removed near 9 GB combined DXGI use (`rx5700-offline-20261130-025358Z`); a previous unmodified long run also failed near that point. A narrower variant kept ten-frame protection and bypassed the quiet pause only after closed-cap placement misses. Its DRED run completed but still had 1,334 valid missing texture and 1,073 Budget-null buffer uses (`rx5700-offline-20261130-030909Z`). The same-settings main-branch DRED control had 409 and 1,410 respectively (`rx5700-offline-20261130-030122Z`). They bound different shader sets, so no performance or visual improvement is established. Both DRED runs observed 0/0 TCP/UDP endpoints and no device removal. The code variants are not merged; `docs/graphics-probe.md` records the counters and remaining coherent-copy and shader gaps. The PR stays draft. ### RX 5700 XT loading-plane alpha fix (`91e67ec`) The loading-screen red flash was reproduced in the final swap chain and traced back to PresentX plane 1. In the guarded baseline, frame 4120 had red RGB over 229,979/230,400 preview pixels, while 14,373/14,400 sampled source alpha values were zero; plane 0 was transparent black. The premultiplied compositor previously added that source RGB even under zero alpha. The new overlay pixel shader clamps RGB to alpha on hardware AMD adapters without ray traversal; other adapter paths retain their existing shader. This does not modify the title archives or video decoder. In an isolated guarded repeat with the clamp enabled, the source-red trigger captured frame 3262 with `source_red=true, final_red=false`: its source plane remained red and the final image was mostly black. The two runs had verified exact-loader inbound/outbound WFP rules, 0/0 observed TCP/UDP sockets, and no GPU removal. The integration branch then passed 349 active diagnostics GPU tests (three ignored), strict diagnostics Clippy, a no-default build check, and a short guarded RX 5700 XT launch with `clamp_overlay=true`; the user saw the intro video on that launch. Earlier black-video reports are intermittent and not yet explained. Loading artwork can still be incomplete on some frames, and the world graphics/resource/FPS gate remains failed. The separate GPU-stitch experiment and its diagnostic capture code were not merged. Follow-up integrated guarded loading run `rx5700-offline-20261130-045938Z` lasted 4.5 minutes. The live window showed two successive illustrated loading images clearly at 29 and 26 fps; no full-screen red or purple flash was seen in those sampled views. The run completed without GPU removal and with 0/0 observed TCP/UDP endpoints under verified exact-loader inbound/outbound WFP blocks. It did not reach the world, so world resource coverage and playable frame rate remain unverified. [CI at 91e67ec](https://github.com/Marvisak/VIctory/actions/runs/46356414691) passed. ### Windows launcher startup fix (`fad5757`) The double-click `Launch VIctory.cmd` entry point uses Windows PowerShell 5.1. Its UI plan validation called `[double]::IsFinite`, which is unavailable on that runtime, so the launcher failed before the form was usable. The three LOD checks now use the supported `IsNaN`/`IsInfinity` methods. The launcher test suite now exercises `-ValidateUi` under Windows PowerShell in addition to PowerShell 7; both passed locally, including saved-settings validation. This does not change game rendering or the offline firewall gate. ### Launcher title identity gate (`7a57e78`) Two user launcher sessions selected `E:\GTA6.Xbox.v1.0.2.1-CYBERLEEK-native-stage\game_scarlett_master.exe`, reported by the loader as unknown BLAKE3 `385bffaa595207ef57b4a15310924c31668c136894f351bac5969f71ab8d9aef`, and terminated on the same title-side `0x80000003` breakpoint at image RVA `0x1330a44` shortly after menu input. A guarded 60-second reproduction with that executable and cooked textures disabled produced the same exit, no GPU removal, and 0/0 observed sockets. A matched guarded 60-second run with the original recognized Series 1.0.2.1 executable remained up with no GPU removal or observed sockets. These tests isolate the modified executable as the material difference; they do not prove the internal reason for its title assertion. The `inspect` CLI now prints the known-build label from the same identity table used by `run`. The GUI launcher checks that identity after the optional build and before starting the game, giving a clear path-specific error for unknown builds. This preserves the original title files and leaves direct CLI experimentation available. Windows PowerShell launcher validation and 30 `victory` tests passed locally; strict Clippy passed. The repository-wide rustfmt check still reports pre-existing formatting differences outside this change. [CI at 7a57e78](https://github.com/Marvisak/VIctory/actions/runs/46359735939) passed Clippy, diagnostics Clippy, and workspace tests. ### RX 5700 XT FSR 3.1.6 dispatch coverage (`aca2758`) The existing host bridge already selects FidelityFX upscaler 3.1.6 on this RX 5700 XT. The guarded 1080p run `rx5700-offline-20261130-081956Z` reached the high-draw world and returned success on its first 1280x720 to 1920x1080 host dispatch. Context creation alone had previously been easy to mistake for a working upscaled frame. The bridge now logs dispatch attempts and failures at bounded intervals, and the diagnostic analyzer records provider, dimensions, first result and reported counts. Its regression test distinguishes context-only from actual dispatch. The guarded instrumented repeat `rx5700-offline-20261130-082900Z` reported four host dispatch attempts and zero failures. It translated 1,316/1,316 bound shader paths, observed zero unexpected dropped-command reasons and no GPU removal or TCP/UDP endpoints under exact-loader inbound/outbound blocks. The earlier 45-second world window translated 1,265/1,265 bound shader paths but measured 0.9 fps median, 797 valid null texture uses and 166 Budget-null buffer uses. The closed-cap texture allocator mostly lacked reusable heap ranges (4,067 deferred sampled textures in one interval, zero driver placement rejections). The shorter instrumented window hit a 13.5-second transition frame, so its 0.1 fps median is not a comparable steady-state result. Two unbound shader translation failures and intentionally suppressed ray traversal remain. The host bridge covers upscaling, not frame generation or software ray traversal; this change does not claim full GPU command coverage, 30 fps, or playability. Full run details and limits are in `docs/graphics-probe.md`. Local checks: `cargo test -p victory-hle --features diagnostics --offline` (153 unit, one FidelityFX integration, one DLL planting integration passed), `cargo clippy -p victory-hle --features diagnostics --all-targets --offline -- -D warnings`, 13 analyzer tests, and `git diff --check` passed. The PR stays draft while resource admission, ray fallback and frame time remain open. ### Follow-up allocator audit (`ee2bd23`) The suggested 3 GB render-target reserve comes from a different fork. This branch has no `VICTORY_CARD_ROOM_FOR_TARGETS_MB` reserve; it admits streamed textures under 85% of the current DXGI local budget and an 8 GB local-plus-system guard in the guarded test. At a late world sample it used 4,827 MB local plus 4,174 MB system, already over that combined guard. Its existing census measured 2,519 MB of GPU-written host textures; 1,368 MB were held only through heap views and had no known-use stamp in 30 frames. Those are a useful lifetime investigation target, but releasing them directly would lose GPU-generated contents that a future bindless read may require. `docs/graphics-probe.md` records the exact evidence and the slot-invalidation/replay requirement. No untested reserve or target-eviction change was merged. ### Related RX 5700 XT fork reviewed Reviewed [Ajamix/victory-rdna1](https://github.com/Ajamix/victory-rdna1) at `f511bead42` (base snapshot `f347e33fc6`). It reports 6.6 fps median on an RX 5700 XT with Series S, using `VICTORY_LOOKUP_CACHE=1`, `VICTORY_HEAP_SYNC_CUT=1` and the plain upscaler. Its ray path remains off by default. This integration branch has a substantially different descriptor sync and shadow-copy allocator, and its current FSR 3.1.6 host dispatch succeeds. The fork's heap sync cut concerns host heaps with fewer title slots than the title heap; it is not evidence of a benefit for this AMD run. Our measured world costs include 1,900–2,200 draws/frame, ~100 ms GPU time, and ~100 ms/frame in probe callbacks in one interval. No source was merged from the fork without a controlled compatibility and performance comparison. Its lookup cache is a candidate for a separately gated, measured adaptation after checking copy lifetime and concurrent invalidation. #### Pending task PR: registered-buffer lookup cache (blkph0x/VIctory#1) [blkph0x/VIctory#1](https://github.com/blkph0x/VIctory/pull/1) (`task/rdna1-lookup-cache`, commit `2577335` on base `ee2bd23`) adapts the fork's `VICTORY_LOOKUP_CACHE` as an opt-in, registered-buffer-only cache with weak handles. Its lookup epoch is counted under the buffer table's lock: after a registration is inserted, and before an unregistration or copy eviction removes an entry. The first draft of this port counted eviction before taking the lock, which could keep returning an evicted copy. Unit tests cover both orderings and fail when the order is reverted. Local workspace Clippy (both feature sets), serial workspace tests and the asset policy pass. **Status: pending, not included in this build.** Fork Actions are not enabled, so the task PR has no CI run yet, and no RX 5700 XT world run has measured the cache on this branch. Upstream [#3535](https://github.com/Marvisak/VIctory/pull/3535) at `c0786ef57c` overlaps but was not adopted (strong handles, registration counted after the lock is released, eviction not counted). #### Pending task PR: launcher title check under Windows PowerShell 5.1 (blkph0x/VIctory#2) [blkph0x/VIctory#2](https://github.com/blkph0x/VIctory/pull/2) (`fix/launcher-ps51-stderr`, commit `8fb484a` on base `ee2bd23`) fixes the launcher identity check added in `7a57e78`. `Assert-SupportedTitle` ran `victory.exe inspect` with stderr redirected while `$ErrorActionPreference` was `'Stop'`. Under Windows PowerShell 5.1, the double-click launcher's runtime, an ordinary INFO tracing line on stderr (for example copystat's large-heap-allocation message for files over 32 MB) became a fatal `NativeCommandError` before the exit code was checked. The check now runs inspect with a local `'Continue'` preference and `NO_COLOR=1`, and decides failure only by the exit code, which it reports together with the captured output. A new launcher-suite regression check runs the real function under `powershell.exe` with a stand-in loader that writes INFO to stderr. It fails on `ee2bd23` and passes with the fix. **Status: pending, not included in this build.** Fork Actions are not enabled, so there is no CI run, and repository CI does not exercise PowerShell scripts. The unmodified launcher suite under PowerShell 7 and a real recognized-title launch are still pending on the user's machine. No open upstream PR touches `scripts/launch-victory.ps1`. [#2227](https://github.com/Marvisak/VIctory/pull/2227) (`5aebbc493b`) and [#2670](https://github.com/Marvisak/VIctory/pull/2670) (`09d847e669`) change loader stderr logging, but neither removes the need for this fix. #### Pending task PR: constant `Dot4AddI8Packed` operands on RDNA1 (blkph0x/VIctory#3) [blkph0x/VIctory#3](https://github.com/blkph0x/VIctory/pull/3) (`task/rdna1-dot4-constant`, head `c82ad06` on base `ee2bd23`) carries upstream [#2408](https://github.com/Marvisak/VIctory/pull/2408) at `23d9be485b` unchanged (KainanP's two commits) and adds an RDNA1 test and note. victory-rdna1 and upstream [#1782](https://github.com/Marvisak/VIctory/issues/1782) found that the RX 5700 XT driver zero-extends the bytes of a constant multiplicand; victory-rdna1 saw its FidelityFX upscaler go white. This branch passed constants straight to `dot4AddPacked.i32`. #2408 sums a multiplicand known before run time by hand, including constants moved through `v_mov`/`s_mov`, which victory-rdna1's operand-only check misses. On this RX 5700 XT, both dot4 constant tests fail on the hardware device with the constant detection disabled and pass with it; WARP passes either way. Local workspace Clippy (both feature sets) and serial workspace tests pass. **Status: pending, not included in this build.** There is no CI run (fork Actions are not enabled). In-game effect is expected only with the title's own upscaler (`VICTORY_FIDELITYFX_DIR` unset), not the default host-FidelityFX path. [#2536](https://github.com/Marvisak/VIctory/pull/2536) at `a3a18d63b5` duplicates #2408 and was not taken. #### Pending task PR: opt-in mouse look for the keyboard stand-in pad (blkph0x/VIctory#4) [blkph0x/VIctory#4](https://github.com/blkph0x/VIctory/pull/4) (`task/rdna1-mouse-look`, head `2a1c483` on base `ee2bd23`) carries upstream [#2182](https://github.com/Marvisak/VIctory/pull/2182) at `ab06200612` (denkencar-sketch's two commits; the conflict with this branch's ungated `VICTORY_KEYS` was resolved). It is opt-in through `VICTORY_MOUSE_LOOK=<sensitivity>` and never samples the mouse while a host pad is active. Two parts of victory-rdna1's `VICTORY_MOUSE` are added on top. Movement is averaged over `VICTORY_MOUSE_WINDOW_MS` (default 100 ms), so a title at a few fps still reads a short movement. LMB/RMB pull RT/LT, and the click that focuses the window is ignored until released. Unit and mutation tests pass, and so do local workspace Clippy (both feature sets) and serial workspace tests. **Status: pending, not included in this build.** There is no CI run, and camera control has not been tried in the title. [#1157](https://github.com/Marvisak/VIctory/pull/1157) (`d67e37dcd9`, needs rebase), [#3494](https://github.com/Marvisak/VIctory/pull/3494) (`58c114e73a`, captures the mouse with a pad connected) and [#3345](https://github.com/Marvisak/VIctory/pull/3345) (`470bc2df60`, full GTA-style remapping) overlap and were not taken. #### Pending task PR: pixel-shader barycentrics via #3588 + VICTORY_BARY_EMULATE geometry-stage fallback (blkph0x/VIctory#5) [blkph0x/VIctory#5](https://github.com/blkph0x/VIctory/pull/5) (`port/rdna1-bary-emulate-2`, head `4f2940b` on base `ee2bd23`) merges upstream [#3588](https://github.com/Marvisak/VIctory/pull/3588) at `6f3244873a` (preserving all 12 upstream commits and authors: Claude, `jaschinski97-ops`, `zed6000`) and adds geometry-shader barycentric emulation (`VICTORYBARY` + `barycentric_gs`) adapted from `michi-feny` (`01a77ea`/`319eb4a` in #3588's discussion) and `Ajamix/victory-rdna1` (`f511bea`, GPL-3.0-or-later) behind `VICTORY_BARY_EMULATE`. Emulation is off by default when the host supports native `SV_Barycentrics`, on by default when the host lacks it (RX 5700 XT / RDNA1), `=0` forces native-only, and `=1` forces emulation; emulated shader-cache entries are keyed separately from native entries, and logs report whether each barycentric pixel shader is emulated, natively supported, or dropped. Synthetic GPU tests on the RX 5700 XT confirm native `SV_Barycentrics` pipeline creation fails while the emulated `VICTORYBARY` + `barycentric_gs` pipeline validates with `dxil.dll`, builds, and renders unequal-`w` (`1, 2, 4`) perspective-center and screen-linear-center `(I, J)` weights within `1e-3` on both RX 5700 XT and WARP. Local workspace Clippy (both feature sets) and serial workspace tests (1,019 passed, 0 failed, 12 ignored, including asset policy) pass. **Status: pending, not included in this build.** Fork Actions are not enabled, so there is no CI run, and in-game hair/head/transparent rendering has not been verified on the RX 5700 XT yet. Upstream [#3335](https://github.com/Marvisak/VIctory/pull/3335) (`e495d2dd`, open `CHANGES_REQUESTED` with mojibake in `lower.rs`) and [#3553](https://github.com/Marvisak/VIctory/pull/3553) (`1101cd9d`, stacked on #3335 without #1738) overlap and were not taken. #### Pending task PR: mesh compute fallback batching past 64 groups and overflow diagnostics (blkph0x/VIctory#6) [blkph0x/VIctory#6](https://github.com/blkph0x/VIctory/pull/6) (`fix/mesh-fallback-groups-2`, head `b6e2659` on base `ee2bd23`) removes the silent 64-group direct truncation and 8-record / 64-group indirect truncation in the RDNA1 mesh compute-to-vertex fallback (`crates/victory-gpu/src/mesh_draw.rs`) without adding permanent VRAM overhead. In `rx5700-offline-20261130-011410Z`, 910 pipelines ran on the mesh fallback (including `[mesh 005fe88ec1bdc0c7, pixel 93667197d3d05e1c]`) and 61 mesh buffer sets already held 135 MB at `GROUPS = 64`. Rather than allocating a large ring buffer, the compute producer now takes a 1-dword `base_group` root constant (`b0` in space 3) added to `SV_GroupID.x` for `Input::MeshGroup` and culls fallback primitives naming vertices `>= max_vertices.min(threads)` (informed by `Ajamix/victory-rdna1` `f511bea`, credited in the commit trailer). Direct dispatches split into batches of `VICTORY_MESH_FALLBACK_GROUPS` (default 64); indirect dispatches expand up to `VICTORY_MESH_FALLBACK_RECORDS` (default 64) records across `VICTORY_MESH_FALLBACK_INDIRECT_PASSES` (default 4, up to 256 groups/record) with GPU-side overflow counters drained in `HostList::end_flight`. Once-per-shader warnings (naming mesh and pixel shader hashes) and per-interval `mesh fallback capacity (interval)` logs report batched and truncated work. Synthetic GPU tests for `base_group` + out-of-range index culling (RX 5700 XT, DXIL validated), >64-group batched rendering (RX 5700 XT + WARP), and multi-pass indirect splitting/overflow readback (RX 5700 XT + WARP) pass. Local workspace Clippy (both feature sets) and serial workspace tests pass. **Status: pending, not included in this build.** Fork Actions are not enabled, so there is no CI run, and in-game verification on the RX 5700 XT (to confirm whether missing hair/body parts/clothing are caused by 64-group truncation) remains pending. Overlapping upstream proposals [#1648](https://github.com/Marvisak/VIctory/pull/1648) (`d62ba28c`) and [#961](https://github.com/Marvisak/VIctory/pull/961) (`31568ced`), plus related 3D-grid PRs [#2996](https://github.com/Marvisak/VIctory/pull/2996) (`5385cc62`) and [#2624](https://github.com/Marvisak/VIctory/pull/2624) (`22f5207f`), were reviewed and left independent. #### Pending task PR: opt-in bound-draw texture priority, keep-views, and RT cap (blkph0x/VIctory#7) [blkph0x/VIctory#7](https://github.com/blkph0x/VIctory/pull/7) (`fix/texture-admission-null-views`, head `c6a2aaa` on base `ee2bd23`) addresses missing hair/body/clothing/transparent textures under closed-cap 8 GB RDNA1 memory pressure without raising DXGI or combined memory caps. Quantitative log analysis of `rx5700-offline-20261130-081956Z` (797 null texture uses; 7,963 recycled attempts, 276 admitted / 3.5%, 7,687 deferred / 96.5%, 8,405 `no_existing_range`) and `-082900Z` (1,443 null uses; 4,769 attempts, 82 admitted / 1.7%) confirms 100% of shader-used null texture views are `host_copy_unavailable`: background `retry_observed_textures()` consumed 63/63 (100%) and 125/126 (99.2%) of recycled admissions in intervals 4–5 ahead of bound table draws, nine live `3840x2160` 1-mip 16:9 RT/DSV targets occupied 296 MB during 1080p runs, and `HostHeap::mirror_with` nulled valid views across same-texture rewrites before replacements existed. Three opt-in (off by default) A/B switches are added: `VICTORY_STREAM_BOUND_PRIORITY=1` (prioritises bound-draw table misses ahead of observed-heap retries hottest/freshest/smallest first, defers speculative unmade `View::Shader` syncs under closed cap, and orders `make_read` smallest-first under closed cap), `VICTORY_KEEP_VIEWS=1` (preserves valid host views across same-texture rewrites until replacements exist; adapted from `Ajamix/victory-rdna1` `f511bead42`, GPL-3.0-or-later), and `VICTORY_RT_CAP=<W>x<H>` / `VICTORY_RT_CAP_KEEP=<fmt,...>` (caps oversized 1-mip 2D ~16:9 render/depth targets with a `CopyTextureRegion` dimension clamp guard; adapted from `Ajamix/victory-rdna1` `f511bead42`), plus an always-on per-interval `texture admission interval` log. High-risk `VICTORY_LEVELS_ON_DEMAND` tiled mips (upstream [#2389](https://github.com/Marvisak/VIctory/pull/2389), [#3647](https://github.com/Marvisak/VIctory/pull/3647), `victory-rdna1` `tiles.rs`) are deferred with a staged adoption plan in `docs/graphics-probe.md`. Targeted unit and live GPU tests (9/9) pass with `VICTORY_D3D12_DEBUG=1` on both RX 5700 XT and WARP; local workspace Clippy (both feature sets), serial workspace tests (999 passed, 0 failed, 12 ignored), `xtask policy` (256 files ok), and `git diff --check` pass. **Status: pending, not included in this build.** Fork Actions are not enabled, so there is no CI run, and in-game A/B verification on the RX 5700 XT remains pending. Overlapping upstream PRs [#3848](https://github.com/Marvisak/VIctory/pull/3848) (`856f653557`), [#3875](https://github.com/Marvisak/VIctory/pull/3875) (`e7d14ae788`), [#2389](https://github.com/Marvisak/VIctory/pull/2389) (`6b91df4a74`), [#3647](https://github.com/Marvisak/VIctory/pull/3647) (`5a99fb539d`), [#2872](https://github.com/Marvisak/VIctory/pull/2872) (`f5497882ca`), [#3276](https://github.com/Marvisak/VIctory/pull/3276) (`ddc621b904`), and [#3444](https://github.com/Marvisak/VIctory/pull/3444) (`c52a07494b`) were reviewed and left independent. #### victory-rdna1 candidates not ported (`f511bead42`) - `VICTORY_IDLE_LISTS`: not applicable as is. victory-rdna1 detaches a host list from the title's list at every submission (about 100 a frame) into a global idle pool that defaults to 512. With 512 idle lists plus those in use, it hit "Kernel memory failure"; `VICTORY_IDLE_LISTS=32` caps that pool. This branch keeps host lists per title list and only replaces one when a list is reset while a queue still holds it. Those go to a spare pool capped at 64 (`list.rs` `recycle`). This branch's documented ID 834 "Kernel memory failure" resets occurred under texture-streaming and nonlocal-memory pressure (about 4.75-4.84 GB nonlocal); none was attributed to host-list memory. No change was made. A spare-pool count and its kept scratch bytes in the frame line would be needed first to justify a cap. - `VICTORY_BARY_EMULATE`: the problem is present, but the port is deferred. Pixel shaders that read barycentrics directly are refused at translation (`lower.rs` `Val::Missing("barycentrics read directly")`), so their draws are dropped (for example pixel `5067d502a1b4ffb4`; victory-rdna1 reports missing heads and hair). The emulation, a geometry stage that writes one-hot corner weights as a noperspective interpolant, needs native pixel-barycentric lowering underneath it. Only the competing unmerged upstream [#3588](https://github.com/Marvisak/VIctory/pull/3588) (`6f3244873a`, +1,462/−192) and [#3335](https://github.com/Marvisak/VIctory/pull/3335)/[#3553](https://github.com/Marvisak/VIctory/pull/3553) (`e495d2dd4d`/`1101cd9d6a`) provide it. The emulation itself is michi-feny's cool_fox `01a77ea`/`319eb4a`, proposed in #3588's discussion, and is what victory-rdna1 carries. The next step is a separate task PR: adopt #3588 (or #3335) here, then add the emulation behind `VICTORY_BARY_EMULATE`. victory-rdna1's README pairs it with an "RT cap", but no matching switch exists in its code.
reallyvibe commented 2026-11-28 19:12:03 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by reallyvibe on 2026-11-28T19:12:03Z.


Thanks for checking #3754 against this branch. Your diagnosis is right: here the batched open_guarded takes pages out of protected without moving OPENED, so a fault's unlocked read can keep stale bytes.

Bumping each page's count before the batched VirtualProtect fixes it if:

  • the bump is unconditional: every page in pages leaves protected, whether or not its VirtualProtect (batched or the per-page retry) succeeds;
  • it covers the alias pages merged into the open list, one bump per page: counts are shared by page % 4096, so one bump per run is not enough.

Note that the two PRs merge with no textual conflict, and the merged code drops the bumps silently. #3754 now has a deterministic test for this, opening_guarded_pages_moves_each_ones_opened_count (5c4bdd6d).

What I ran is a watch.rs-only simulation, not a full integration test: #3754's tree with the merged watch.rs, none of this branch's other files. Merged as is, the new test fails 20 of 20 runs in debug and release. With this at the top of open_guarded, all watch::tests pass:

for &page in pages {
    opened(page).fetch_add(1, Ordering::Relaxed);
}

I have not built or tested your full branch with #3754.

AI-assisted (Claude Code).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7244365701 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3745#issuecomment-7244365701). Originally posted by [reallyvibe](https://github.com/reallyvibe) on 2026-11-28T19:12:03Z. --- Thanks for checking #3754 against this branch. Your diagnosis is right: here the batched `open_guarded` takes pages out of `protected` without moving `OPENED`, so a fault's unlocked read can keep stale bytes. Bumping each page's count before the batched `VirtualProtect` fixes it if: - the bump is **unconditional**: every page in `pages` leaves `protected`, whether or not its `VirtualProtect` (batched or the per-page retry) succeeds; - it covers the **alias pages** merged into the `open` list, one bump per page: counts are shared by `page % 4096`, so one bump per run is not enough. Note that the two PRs merge with **no textual conflict**, and the merged code drops the bumps silently. #3754 now has a deterministic test for this, `opening_guarded_pages_moves_each_ones_opened_count` (`5c4bdd6d`). What I ran is a `watch.rs`-only simulation, not a full integration test: #3754's tree with the merged `watch.rs`, none of this branch's other files. Merged as is, the new test fails 20 of 20 runs in debug and release. With this at the top of `open_guarded`, all `watch::tests` pass: ```rust for &page in pages { opened(page).fetch_add(1, Ordering::Relaxed); } ``` I have not built or tested your full branch with #3754. AI-assisted (Claude Code).
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3745:upstream-pr/3745'
git switch 'upstream-pr/3745'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3745'
git switch 'upstream-pr/3745'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3745'
git switch 'upstream-pr/3745'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3745'
git switch 'main'
git merge --squash 'upstream-pr/3745'
git switch 'main'
git merge --ff-only 'upstream-pr/3745'
git switch 'main'
git merge 'upstream-pr/3745'
git push origin 'main'
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
Marvisak/VIctory!3745
No description provided.