resource: opt-in R11G11B10_FLOAT stand-in for R9G9B9E5 targets (DARNER_E5_TARGETS) #443

Open
Paliton wants to merge 2 commits from Paliton/Darner-fork:pr/e5-targets-r11g11b10 into Main
First-time contributor

Contributor role (optional)

  • Fluxer ID:

What it changes

  • The problem on main: PC GPUs do not support rendering/UAV writes to R9G9B9E5 (DXGI format 67), so resource::target_format always substitutes 64-bit R16G16B16A16_FLOAT (format 10), doubling VRAM footprint and memory bandwidth for those HDR render targets and UAVs.

Adds an opt-in switch DARNER_E5_TARGETS=r11g11b10 (off by default, preserving R16G16B16A16_FLOAT unless explicitly set) that selects 32-bit R11G11B10_FLOAT (format 26) as the stand-in format for R9G9B9E5 targets, ported from Keel62155/VIctoryUnified / Neptune-VE (GPL-3.0). Documents the switch in README.md and adds unit test parse_e5_stand_in_modes.

How it was tested

  • Tested revision: d2bba21 (based on f3840d7)

  • Commands and results:

    • cargo xtask policy -> asset policy: 555 files ok
    • cargo clippy --workspace --all-targets --locked -- -D warnings -> ok (0 warnings)
    • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings -> ok (0 warnings)
    • cargo test -p darner-gpu --lib --locked parse_e5_stand_in_modes -- --test-threads=1 -> 1 passed; 0 failed
    • cargo test --workspace --locked -> all non-flaky tests pass (1773/1774 in darner-gpu; the single failure is the pre-existing gpu_owned::tests::concurrent_faults_on_same_block_serialize_single_readback flake fixed by #261)
  • Changes a default: no (off by default; unset or any value other than r11g11b10 keeps R16G16B16A16_FLOAT).

  • A/B result: tested on RTX 5070 12 GB + i7-14700KF (--profile diag --features diagnostics, generic x86-64 build, pure play-defaults, Series X, 1440p -> 4K, DLSS off, FG off, RT off), 240 s automated opening sequence from the same snapshot, comparing unset (A) vs DARNER_E5_TARGETS=r11g11b10 (B).

    • Note: B run 1 was cold for the new R11G11B10_FLOAT RTV format (made=8 new host pipelines, load_ms_each=47: 5,218 frames, Window 3 21.08 fps / 46.08 ms med / 44.65 ms GPU). Once the pipeline library was warm (made=0, load_ms_each=2-5), 2 warm B runs beat both A runs in Window 2 and Window 3:
    Metric (2 warm runs each) A (default R16G16B16A16_FLOAT, f3840d7) B (DARNER_E5_TARGETS=r11g11b10, d2bba21)
    Total frames (240 s) 5,367 / 5,537 (mean 5,452) 5,556 / 5,466 (mean 5,511, +59)
    Window 1 (90-130 s) fps / med ms 21.23 / 22.43 fps (46.42 / 44.97 ms) 22.30 / 21.72 fps (43.47 / 44.52 ms)
    Window 2 (130-180 s) fps / med ms 21.24 / 21.86 fps (45.77 / 44.46 ms) 22.68 / 21.94 fps (42.83 / 44.26 ms)
    Window 3 (180-235 s) fps (mean) 21.52 / 22.16 (21.84 fps) 22.90 / 22.28 (22.59 fps, +0.75)
    Window 3 median frame time 45.26 / 43.89 (44.58 ms) 42.51 / 43.67 (43.09 ms, -1.49 ms)
    Window 3 p95 / p99 frame time 47.1 / 94.3 ms (mean) 46.0 / 90.0 ms (mean, p99 -4.3 ms)
    Window 3 GPU (card_lists_ms) 43.63 / 42.43 (43.03 ms) 40.93 / 42.20 (41.57 ms, -1.47 ms)
  • Gates run on that revision: all three AGENTS.md gates + cargo xtask policy on d2bba21.

  • Gameplay, when relevant: RTX 5070 12 GB, Series X, 1440p -> 4K, DLSS off, FG off, RT off. Visual parity verified against R16G16B16A16_FLOAT across all 3 windows with zero HDR colour/lighting artefacts or device/validation errors.

  • Hardware dependence: general (D3D12 standard DXGI_FORMAT_R11G11B10_FLOAT RT/UAV support); bandwidth savings will vary by GPU memory bandwidth and resolution.

  • Coverage gaps: tested on NVIDIA RTX 5070 only; untested on AMD/Intel or with HWRT enabled.

Checklist

  • I ran this change in the game, or say below why it can't be (docs, tests only).
  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: #431, #416, #335, #220, #50 (also touch crates/darner-gpu/src/resource.rs, non-overlapping lines)
  • Replaces or overlaps: none found
## Contributor role (optional) - Fluxer ID: ## What it changes - The problem on main: PC GPUs do not support rendering/UAV writes to `R9G9B9E5` (DXGI format 67), so `resource::target_format` always substitutes 64-bit `R16G16B16A16_FLOAT` (format 10), doubling VRAM footprint and memory bandwidth for those HDR render targets and UAVs. Adds an opt-in switch `DARNER_E5_TARGETS=r11g11b10` (off by default, preserving `R16G16B16A16_FLOAT` unless explicitly set) that selects 32-bit `R11G11B10_FLOAT` (format 26) as the stand-in format for `R9G9B9E5` targets, ported from `Keel62155/VIctoryUnified` / `Neptune-VE` (GPL-3.0). Documents the switch in `README.md` and adds unit test `parse_e5_stand_in_modes`. ## How it was tested - Tested revision: `d2bba21` (based on `f3840d7`) - Commands and results: - `cargo xtask policy` -> `asset policy: 555 files ok` - `cargo clippy --workspace --all-targets --locked -- -D warnings` -> ok (0 warnings) - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` -> ok (0 warnings) - `cargo test -p darner-gpu --lib --locked parse_e5_stand_in_modes -- --test-threads=1` -> `1 passed; 0 failed` - `cargo test --workspace --locked` -> all non-flaky tests pass (`1773/1774` in `darner-gpu`; the single failure is the pre-existing `gpu_owned::tests::concurrent_faults_on_same_block_serialize_single_readback` flake fixed by #261) - Changes a default: no (off by default; unset or any value other than `r11g11b10` keeps `R16G16B16A16_FLOAT`). - A/B result: tested on RTX 5070 12 GB + i7-14700KF (`--profile diag --features diagnostics`, generic x86-64 build, pure `play-defaults`, Series X, 1440p -> 4K, DLSS off, FG off, RT off), 240 s automated opening sequence from the same snapshot, comparing unset (A) vs `DARNER_E5_TARGETS=r11g11b10` (B). - Note: B run 1 was cold for the new `R11G11B10_FLOAT` RTV format (`made=8` new host pipelines, `load_ms_each=47`: 5,218 frames, Window 3 21.08 fps / 46.08 ms med / 44.65 ms GPU). Once the pipeline library was warm (`made=0`, `load_ms_each=2-5`), 2 warm B runs beat both A runs in Window 2 and Window 3: | Metric (2 warm runs each) | A (default `R16G16B16A16_FLOAT`, `f3840d7`) | B (`DARNER_E5_TARGETS=r11g11b10`, `d2bba21`) | |---|---|---| | Total frames (240 s) | 5,367 / 5,537 (mean 5,452) | 5,556 / 5,466 (mean **5,511**, +59) | | Window 1 (90-130 s) fps / med ms | 21.23 / 22.43 fps (46.42 / 44.97 ms) | 22.30 / 21.72 fps (43.47 / 44.52 ms) | | Window 2 (130-180 s) fps / med ms | 21.24 / 21.86 fps (45.77 / 44.46 ms) | 22.68 / 21.94 fps (42.83 / 44.26 ms) | | Window 3 (180-235 s) fps (mean) | 21.52 / 22.16 (**21.84 fps**) | 22.90 / 22.28 (**22.59 fps**, +0.75) | | Window 3 median frame time | 45.26 / 43.89 (**44.58 ms**) | 42.51 / 43.67 (**43.09 ms**, -1.49 ms) | | Window 3 p95 / p99 frame time | 47.1 / 94.3 ms (mean) | 46.0 / 90.0 ms (mean, p99 -4.3 ms) | | Window 3 GPU (`card_lists_ms`) | 43.63 / 42.43 (**43.03 ms**) | 40.93 / 42.20 (**41.57 ms**, -1.47 ms) | - Gates run on that revision: all three `AGENTS.md` gates + `cargo xtask policy` on `d2bba21`. - Gameplay, when relevant: RTX 5070 12 GB, Series X, 1440p -> 4K, DLSS off, FG off, RT off. Visual parity verified against `R16G16B16A16_FLOAT` across all 3 windows with zero HDR colour/lighting artefacts or device/validation errors. - Hardware dependence: general (D3D12 standard `DXGI_FORMAT_R11G11B10_FLOAT` RT/UAV support); bandwidth savings will vary by GPU memory bandwidth and resolution. - Coverage gaps: tested on NVIDIA RTX 5070 only; untested on AMD/Intel or with HWRT enabled. ## Checklist - [x] I ran this change in the game, or say below why it can't be (docs, tests only). - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: #431, #416, #335, #220, #50 (also touch `crates/darner-gpu/src/resource.rs`, non-overlapping lines) - Replaces or overlaps: none found
Contributor

I tested #443 on an RTX 3060 12 GB (Core Ultra 5 225F, Windows 11). The fast diagnostics build was c8258f9 plus d2bba21 (d88178b). The card reports RTV, typed UAV load and typed UAV store support for R11G11B10_FLOAT. The log confirmed the format-67 fallback was 10 in the controls and 26 with the switch.

Each 50 s take used the same executable path, fixed Chapter II camera, and a fresh copy of the same 127,643,324-byte Darner pipeline library. Series S at 540p to 1080p, DLSS Performance, FSR 3 ×2, RT off. FPS counts rendered frames.

Format Rendered FPS Median frame, ms p95, ms p99, ms GPU busy, ms/frame*
RGBA16, first 23.22 41.608 57.122 75.922 38.6
RGB11, first 22.93 42.114 56.719 85.570 38.7
RGBA16, repeat 22.87 42.461 53.149 76.095 39.1
RGB11, repeat 22.64 42.704 70.808 83.983 38.6

GPU busy is the last 600-frame steady-state card-meter block, read about a second late. I saw no repeatable speedup in this scene. The first, separate RGB11 cache-prime run stopped presenting and was closed after 78 s without a new row. Both matched warm RGB11 takes completed, so I couldn't reproduce the stall after warming the cache.

I also inspected the same room in separate visual runs. The lighting, wall, curtains and bedding looked consistent at the sampled moments. That was a spot check in one room, not pixel parity or coverage of other scenes.

I tested #443 on an RTX 3060 12 GB (Core Ultra 5 225F, Windows 11). The fast diagnostics build was `c8258f9` plus `d2bba21` (`d88178b`). The card reports RTV, typed UAV load and typed UAV store support for R11G11B10_FLOAT. The log confirmed the format-67 fallback was 10 in the controls and 26 with the switch. Each 50 s take used the same executable path, fixed Chapter II camera, and a fresh copy of the same 127,643,324-byte Darner pipeline library. Series S at 540p to 1080p, DLSS Performance, FSR 3 ×2, RT off. FPS counts rendered frames. | Format | Rendered FPS | Median frame, ms | p95, ms | p99, ms | GPU busy, ms/frame* | |---|---:|---:|---:|---:|---:| | RGBA16, first | 23.22 | 41.608 | 57.122 | 75.922 | 38.6 | | RGB11, first | 22.93 | 42.114 | 56.719 | 85.570 | 38.7 | | RGBA16, repeat | 22.87 | 42.461 | 53.149 | 76.095 | 39.1 | | RGB11, repeat | 22.64 | 42.704 | 70.808 | 83.983 | 38.6 | *GPU busy is the last 600-frame steady-state card-meter block, read about a second late.* I saw no repeatable speedup in this scene. The first, separate RGB11 cache-prime run stopped presenting and was closed after 78 s without a new row. Both matched warm RGB11 takes completed, so I couldn't reproduce the stall after warming the cache. I also inspected the same room in separate visual runs. The lighting, wall, curtains and bedding looked consistent at the sampled moments. That was a spot check in one room, not pixel parity or coverage of other scenes.
TrustNo1 changed title from [pr-performance][rendering] resource: opt-in R11G11B10_FLOAT stand-in for R9G9B9E5 targets (DARNER_E5_TARGETS) to resource: opt-in R11G11B10_FLOAT stand-in for R9G9B9E5 targets (DARNER_E5_TARGETS) 2026-12-06 03:28:58 +00:00
Owner

Test needed — commit dc246fa1; what to check:

  • The problem on main: PC GPUs do not support rendering/UAV writes to R9G9B9E5 (DXGI format 67), so resource::target_format always substitutes 64-bit R16G16B16A16_FLOAT (format 10), doubling VRAM footprint and memory bandwidth for those HDR render targets and UAVs.

Adds an opt-in switch DARNER_E5_TARGETS=r11g11b10 (off by default, preserving R16G16B16A16_FLOAT unless explicitly set) that selects 32-bit R11G11B10_FLOAT (format 26) as the stand-in format for R9G9B9E5 targets, ported from Keel62155/VIctoryUnified / Neptune-VE (GPL-3.0). Documents the switch in README.md and adds unit test parse_e5_stand_in_modes.

Evidence to post: card + driver, settings, commit tested, before/after (switch off vs on, two runs each), fps median and p99, and one line saying you looked at the picture.

Reply testing to take this run; it's free again after 24 h with no results.

**Test needed** — commit `dc246fa1`; what to check: - The problem on main: PC GPUs do not support rendering/UAV writes to `R9G9B9E5` (DXGI format 67), so `resource::target_format` always substitutes 64-bit `R16G16B16A16_FLOAT` (format 10), doubling VRAM footprint and memory bandwidth for those HDR render targets and UAVs. Adds an opt-in switch `DARNER_E5_TARGETS=r11g11b10` (off by default, preserving `R16G16B16A16_FLOAT` unless explicitly set) that selects 32-bit `R11G11B10_FLOAT` (format 26) as the stand-in format for `R9G9B9E5` targets, ported from `Keel62155/VIctoryUnified` / `Neptune-VE` (GPL-3.0). Documents the switch in `README.md` and adds unit test `parse_e5_stand_in_modes`. Evidence to post: card + driver, settings, commit tested, before/after (switch off vs on, two runs each), fps median and p99, and one line saying you looked at the picture. Reply `testing` to take this run; it's free again after 24 h with no results.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'pr/e5-targets-r11g11b10:Paliton-pr/e5-targets-r11g11b10'
git switch 'Paliton-pr/e5-targets-r11g11b10'

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 'Paliton-pr/e5-targets-r11g11b10'
git switch 'Paliton-pr/e5-targets-r11g11b10'
git rebase 'Main'
git switch 'Main'
git merge --ff-only 'Paliton-pr/e5-targets-r11g11b10'
git switch 'Paliton-pr/e5-targets-r11g11b10'
git rebase 'Main'
git switch 'Main'
git merge --no-ff 'Paliton-pr/e5-targets-r11g11b10'
git switch 'Main'
git merge --squash 'Paliton-pr/e5-targets-r11g11b10'
git switch 'Main'
git merge --ff-only 'Paliton-pr/e5-targets-r11g11b10'
git switch 'Main'
git merge 'Paliton-pr/e5-targets-r11g11b10'
git push origin 'Main'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!443
No description provided.