[pr-feature][performance] Add opt-in RAGE 9 LOD, cull, shadow, volumetric, and foliage distance switches #95

Open
hingeowl wants to merge 1 commit from hingeowl/Darner:vercetti/rage9-detail-switches into main
First-time contributor

Summary

Adds opt-in RAGE 9 detail, LOD, cull, shadow, volumetric, and foliage distance switches in crates/darner-loader/src/detail.rs (all off by default; zero changes to title code unless explicitly set):

  • DARNER_LOD_SCALE, DARNER_SMALL_CULL, DARNER_VEHICLE_LOD_BIAS, DARNER_WORLD_DIST_SCALE
  • DARNER_LOW_SHADOWS, DARNER_SHADOW_CASCADES, DARNER_SHADOW_DIST, DARNER_GRASS_SHADOWS, DARNER_SHADOW_EXTRAS
  • DARNER_LOW_VOLUMETRIC, DARNER_VOLUMETRIC_QUALITY
  • DARNER_TREE_TESS, DARNER_TREE_QUALITY, DARNER_FOLIAGE_TIER, DARNER_TESS_LOW, DARNER_ITER_TIER

Provenance

  • Ported from https://github.com/lobomfz/VIctory-xmem commits df5e80893ba2a13e410659cc0a077cebed3ae7c5 and 95966c7d (GPL-3.0-or-later), env vars renamed to DARNER_*.
  • Rebased cleanly onto main (b3a615f).

Validation

  • Unit tests: cargo test --locked -p darner-loader — 97/97 passed (including detail::tests::switches_parse, the_codes_store_the_value_where_the_title_did, and the_places_are_the_titles_reads_of_its_settings).
  • 2-round 60 s interleaved spinning-camera A/B (RTX 4090 / Ryzen 9 7950X3D, Series X, 1440p, RT off, default unset vs DARNER_LOD_SCALE=0.35, DARNER_SMALL_CULL=2.0, DARNER_SHADOW_CASCADES=2, DARNER_GRASS_SHADOWS=0, DARNER_LOW_VOLUMETRIC=1, same binary):
Metric Default (unset, R1 / R2) Detail switches ON (R1 / R2) Summary Delta
Draws/frame 8,285 / 6,494 (8,285) 5,792 / 6,089 (6,089) -26.5% draws
FPS (median) 21.7 / 21.9 (21.9) 22.4 / 22.0 (22.4) +0.5 FPS
FrameMedMs 47.6 / 45.9 ms (47.6) 44.8 / 44.9 ms (44.9) -2.7 ms
FrameP95Ms 59.5 / 56.8 ms (59.5) 57.4 / 56.5 ms (57.4) -2.1 ms
RefreshMs 10.7 ms 9.6 ms -1.1 ms
CopiesMB/f 54.0 MB/f 49.5 MB/f -4.5 MB/f
Idle scene (shot-000s) 34.3 FPS (5,891 draws) 37.9 FPS (4,763 draws) +3.6 FPS
  • Visuals: Inspected directly — clean geometry, shadows, water, and foliage (nonBlack=99.99%, magenta=0%), zero crashes.
  • (Reference baseline on unmodified main b3a615f: 19.4 FPS, 49.6 ms med, 65.0 ms P95, 35.1 ms submit, 7,946 draws.)
## Summary Adds opt-in RAGE 9 detail, LOD, cull, shadow, volumetric, and foliage distance switches in `crates/darner-loader/src/detail.rs` (all **off by default**; zero changes to title code unless explicitly set): - `DARNER_LOD_SCALE`, `DARNER_SMALL_CULL`, `DARNER_VEHICLE_LOD_BIAS`, `DARNER_WORLD_DIST_SCALE` - `DARNER_LOW_SHADOWS`, `DARNER_SHADOW_CASCADES`, `DARNER_SHADOW_DIST`, `DARNER_GRASS_SHADOWS`, `DARNER_SHADOW_EXTRAS` - `DARNER_LOW_VOLUMETRIC`, `DARNER_VOLUMETRIC_QUALITY` - `DARNER_TREE_TESS`, `DARNER_TREE_QUALITY`, `DARNER_FOLIAGE_TIER`, `DARNER_TESS_LOW`, `DARNER_ITER_TIER` ## Provenance - Ported from `https://github.com/lobomfz/VIctory-xmem` commits `df5e80893ba2a13e410659cc0a077cebed3ae7c5` and `95966c7d` (GPL-3.0-or-later), env vars renamed to `DARNER_*`. - Rebased cleanly onto `main` (`b3a615f`). ## Validation - **Unit tests:** `cargo test --locked -p darner-loader` — **97/97 passed** (including `detail::tests::switches_parse`, `the_codes_store_the_value_where_the_title_did`, and `the_places_are_the_titles_reads_of_its_settings`). - **2-round 60 s interleaved spinning-camera A/B** (RTX 4090 / Ryzen 9 7950X3D, Series X, 1440p, RT off, default unset vs `DARNER_LOD_SCALE=0.35`, `DARNER_SMALL_CULL=2.0`, `DARNER_SHADOW_CASCADES=2`, `DARNER_GRASS_SHADOWS=0`, `DARNER_LOW_VOLUMETRIC=1`, same binary): | Metric | Default (unset, R1 / R2) | Detail switches ON (R1 / R2) | Summary Delta | |---|---:|---:|---:| | **Draws/frame** | `8,285` / `6,494` (`8,285`) | `5,792` / `6,089` (`6,089`) | **`-26.5%` draws** | | **FPS (median)** | `21.7` / `21.9` (`21.9`) | `22.4` / `22.0` (`22.4`) | **`+0.5 FPS`** | | **FrameMedMs** | `47.6` / `45.9 ms` (`47.6`) | `44.8` / `44.9 ms` (`44.9`) | **`-2.7 ms`** | | **FrameP95Ms** | `59.5` / `56.8 ms` (`59.5`) | `57.4` / `56.5 ms` (`57.4`) | **`-2.1 ms`** | | **RefreshMs** | `10.7 ms` | `9.6 ms` | **`-1.1 ms`** | | **CopiesMB/f** | `54.0 MB/f` | `49.5 MB/f` | **`-4.5 MB/f`** | | **Idle scene (`shot-000s`)** | `34.3 FPS` (`5,891` draws) | `37.9 FPS` (`4,763` draws) | **`+3.6 FPS`** | - **Visuals:** Inspected directly — clean geometry, shadows, water, and foliage (`nonBlack=99.99%`, `magenta=0%`), zero crashes. - *(Reference baseline on unmodified `main` `b3a615f`: `19.4 FPS`, `49.6 ms` med, `65.0 ms` P95, `35.1 ms` submit, `7,946` draws.)*
Ported from VIctory-xmem df5e8089 + 95966c7d (all off by default, env vars renamed to DARNER_*).

Upstream-Repository: https://github.com/lobomfz/VIctory-xmem
Upstream-Commit: df5e80893ba2a13e410659cc0a077cebed3ae7c5
Upstream-Commit: 95966c7d
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 'vercetti/rage9-detail-switches:hingeowl-vercetti/rage9-detail-switches'
git switch 'hingeowl-vercetti/rage9-detail-switches'

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 'hingeowl-vercetti/rage9-detail-switches'
git switch 'hingeowl-vercetti/rage9-detail-switches'
git rebase 'main'
git switch 'main'
git merge --ff-only 'hingeowl-vercetti/rage9-detail-switches'
git switch 'hingeowl-vercetti/rage9-detail-switches'
git rebase 'main'
git switch 'main'
git merge --no-ff 'hingeowl-vercetti/rage9-detail-switches'
git switch 'main'
git merge --squash 'hingeowl-vercetti/rage9-detail-switches'
git switch 'main'
git merge --ff-only 'hingeowl-vercetti/rage9-detail-switches'
git switch 'main'
git merge 'hingeowl-vercetti/rage9-detail-switches'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
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.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!95
No description provided.