Add RenoDX HDR tone mapper (RenoDRT/DICE/Hermite) with F10 live settings #70
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/gamingwithhomie--larp!70
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-70"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@wh1te-rgb on GitHub · 2026-12-05 17:16 UTC · original
wh1te-rgb:pr/renodx-hdr→main· +2244 −22 · 20 files · 7 commits · openAdds an optional RenoDX HDR tone mapper for native HDR10 displays (
LARP_HDR=1), with both environment variable configuration and liveF10menu controls.Summary
crates/larp-gpu/src/renodx.rs,draw.rs,barriers.rs,pipeline.rs,hdr.rs):CS_BakeACES) and final HDR output blit pass on HDR10 surfaces.offby default).auto/200..10000), Paper White (80..500), Exposure (EV), Contrast, Shadows, Highlights, Saturation, Blowout, and Flare.crates/larp-game/src/settings.rs,crates/larp-hle/src/settings.rs):renodx*options insettings.iniand theF10overlay menu (with live clamping/formatting andDARNER_RENODX_*env fallbacks matchinghdr.rs).locales/*.json,docs/environment-variables.md):en,de,fr,pl,tr,zh-CN,zh-TW) and documentsLARP_RENODX*variables.Verification
cargo check -p larp-core -p larp-game -p larp-gpu -p larp-hlecargo test -p larp-core(7 passed)cargo test -p larp-game(60 passed)cargo test -p larp-gpu renodx(3 passed)F10toggling & parameter tuning work acrossRenoDRT/DICE/Hermite.@gamingwithhomie on GitHub · 2026-12-05 18:50 UTC · original
Reviewed in detail - great work, and the tone-mapping math tests are solid. Holding merge for one default-behavior bug:
With RenoDX off, settings load still calls
ask_paper_white(value.unwrap_or(203.0))->hdr::set_paper_white(203.0)for every user who hasnt explicitly set a Reno paper-white. That silently changes the existing HDR paper white from 150 nits (current default, and an explicitLARP_HDR_PAPER_WHITE) to 203 nits, even withrenodx = off.Also, while off, every
CS_BakeACESdispatch still allocates a LUT backup + records a full copy, and everyPS_BlitHDRACESdraw runs descriptor/CBV probing.Requested changes:
hdrwhen RenoDX is enabled or the user explicitly set a Reno paper-white; otherwise leave the existing HDR value/default untouched.mode() != Off.With those two fixes this becomes ready to merge. Thank you!
@Heliumrich on GitHub · 2026-12-05 19:37 UTC · original · edited 2026-12-05 22:55 UTC
Please add a UI nits setting, the world map is burning my eyes
and what about their PsychoV35 psychovisual tonemapper ?
@Heliumrich on GitHub · 2026-12-05 22:10 UTC · original · edited 2026-12-05 23:46 UTC
This HDR is infinitely better than the native one. Tested on my AW3225QF 4K 12bit OLED monitor
I just find the UI a bit bad ; I would set peak to 420/450, and I can only choose 400 or 600
Improvements :
LARP_HDR=1is enabled, or better yet : add this "Enable HDR" in the UI@wh1te-rgb on GitHub · 2026-12-06 01:11 UTC · original
Thanks for the thorough review and testing! Pushed commits
d3205f6and332b50bto address both requested changes:paper_whitewhen RenoDX isoff:ask_paper_whiteto acceptOption<f64>instead of eagerly pushing203.0ondefault.hdr::set_paper_whiteis now only updated when RenoDX is enabled orrenodx_paper_white/LARP_RENODX_PAPER_WHITEis explicitly set; switching back tooffwithout an explicit value restores the base HDR value (LARP_HDR_PAPER_WHITEor150nits).CS_BakeACESLUT backup/copy andPS_BlitHDRACESprobing onmode() != Mode::Off:Off, with a single one-shot restore (NEEDS_RESTORE) when toggling from an active mode back toOffthat restores the original LUT and drops the backup state.Also expanded
renodx_peakpresets to400..800in steps of50(including420for TrueBlack 400 panels) and800..2000in steps of100(note: F10 andsettings.iniare fixed choice lists without free-text numeric input, whileLARP_RENODX_PEAK=<nits>accepts any custom value in200..10000). Keeping separate UI nits, conditional greying-out, and additional tonemappers out of this PR so the merge scope stays minimal — happy to follow up on those after merge.@vanya890 on GitHub · 2026-12-06 01:37 UTC · original
The updated
off_mode_gates_hooks_and_preserves_hdr_paper_whitetest covers the original regression well: turning RenoDX off restores the stock 150-nit paper white, while an explicit RenoDX value is kept only until reset. One extra boundary worth covering is an explicit baseLARP_HDR_PAPER_WHITEoverride while RenoDX remains off. The new reset path is intended to preserve that user setting too; a small isolated test for the env override would guard against accidentally restoring the hard-coded 150-nit default instead.@wh1te-rgb on GitHub · 2026-12-06 01:43 UTC · original
Good catch! Added an isolated integration test in
crates/larp-gpu/tests/renodx_paper_white_env.rs(commit38ff2fe, separate test process soOnceLockenv initialization is uncontaminated):LARP_HDR_PAPER_WHITE=120and verifies thatRenoDXoff-mode initialization, togglingRenoDRT -> Off, and resetting an explicitrenodx_paper_whiteback toNonewhile off all preserve/restore120.0nits instead of falling back to150.0.cargo test -p larp-gpu --test renodx_paper_white_env(1 passed) andcargo test -p larp-gpu renodx(4 passed).@y9999 on GitHub · 2026-12-06 02:47 UTC · original
Hi @wh1te-rgb, thanks for the PR — tested it on an AW3225QF (HDR Peak 1000 mode, RTX 5080), and it works great.
While testing, we built a few additions on top of your branch (
38ff2fe), which you might want for the follow-up you mentioned. Branch: https://github.com/y9999/larp/tree/renodx-extras (commits2bfaa21and99b0f77):renodx_vanilla_color, default 100%): the bake reads the game's own ACES LUT (the backup you already keep, now also bound as an SRV) at the same texel, and takes its hue and colourfulness (OkLab chroma/lightness) at RenoDX's lightness. ACES maps per channel in AP1, which a luminance curve doesn't reproduce, so with RenoDRT alone the picture was noticeably less saturated than native, even at equal paper white. With it, hue and saturation match native 1:1, and only the luminance is RenoDX's. Blowout then defaults to 0, since the ACES highlight desaturation comes along.renodx_ui_scale): the technique by moistman7 (fefw-recompui_nits). The blit multiplies the whole picture by k, and the LUT divides the scene by k, so only what the game draws after the LUT (HUD, map, menus) changes. Tested: the scene is unchanged and only the HUD/map moves. This should cover the "UI nits" request from Heliumrich.CS_BakeACESdispatch. While toggling RenoDX and UI brightness repeatedly, we hit a device hang (0x887A0006), and the log showed millions of objects waiting for release. With the reuse, there were no hangs in the same test.Probe info from this setup, in case it helps: LUT 64³
R16G16B16A16_FLOAT(so no UNORM precision issue); outputR10G10B10A2PQ; the native path is ACES SSTS with min 0.005 / max 1000 nits.Happy to open this as a follow-up PR once #70 is merged (crediting you and moistman7), or feel free to cherry-pick it into yours if you prefer. The branch also has a Windows build workflow for my fork, which wouldn't be part of a PR.
@wh1te-rgb on GitHub · 2026-12-06 03:00 UTC · original
Thanks a lot @y9999 for the thorough testing and the great additions (especially catching the
0x887A0006device hang from LUT/heap churn and the probe details)!I've integrated all four improvements from
renodx-extrasinto this PR in94f1bde(crediting you and moistman7, without the fork workflow), along with a few polish tweaks:lut_vanillareads to non-negative values before OkLab conversion0.0..=1.0forrenodx_vanilla_color,0.1..=2.0forrenodx_ui_scale) and added a unit test for bothAll workspace checks and
larp-core/larp-game/larp-gpu/larp-hletests pass. Ready for another look whenever convenient!@Heliumrich on GitHub · 2026-12-06 03:13 UTC · original
Dude dont use the shitty 1000 nits mode on these oled panels 😭
400 true black otherwise eotf curve is fucked ; no contrast in highlight, looks like shit, ABL flicker like crazy from scene change, ...
@wh1te-rgb on GitHub · 2026-12-06 03:21 UTC · original
lmao facts, that exact Peak 1000 EOTF mess and aggressive ABL drove me nuts too. Honestly it's half the reason I literally just switched from OLED to a glossy MiniLED a couple days ago, finally getting real highlights without the TB400 compromise or burn-in anxiety.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.