WIP: EXPOSURE: the composer fallback is bounded, and the offset is read once #469
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!469
Loading…
Reference in a new issue
No description provided.
Delete branch "Jesper-A/Darner:up-exposure-recursion-fix"
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?
Refs #305
What it changes
Follow-up to #305 (merged at
170688480). It answers two review points on that PR. It is a new PR because #305 is merged.DARNER_EXPOSUREset, a whole plane picks the plane composer. When the composer is still pending or cannot be made,show_base_onlycallspresent_planesagain. That call picks the composer again, so, reading the code, the fallback can repeat without a bound (crates/darner-gpu/src/host.rs,present_placed,show_base_only). On the main before #305 the same fallback ended in a copy (per iBooM72, comment 872386).PresentComposition::fallback_to_base). With it set, exposure is off for that present, so a copyable plane is shown as it is. If that present also needs a fallback, it returnsNoneinstead of retrying. The same three log lines (two-plane composer not made,two-plane composer not made after resize,could not record display composite) now reportfallback = can_fallback.exposure_ev()read the environment twice per present. It is now read once and kept in an atomic. The F1 row updates it throughset_exposure(host/menu.rs). A unit test checks that the "not read yet" marker can never be produced byparse_exposure.docs/findings.mdsays both of these, and says the frame-generation gap below is open.Credit:
4bc7d8c, kept with its author (the first commit here,50ff98107). He found the repeated composer attempts on #305: #305 (comment)Not fixed here: iBooM72's frame-generation point. DLSS-FG and FSR get the scene plane before the composer as the colour without the interface, while the back buffer is scaled by 2^EV. Where frame generation finds the interface by difference (always in HDR10), every pixel then differs with the offset on. Fixing it would need the same scale on that copy. It stays open and is written down in
docs/findings.md. The game run below includes it.How it was tested
up-exposure-recursion-fix@d324094f5, based on main47d21cd3b.47d21cd3b. main is nowd91d8e4d6;git merge-treemerges the branch cleanly there. Not rebased, not re-tested on the new main (WIP).cargo clippy -p darner-gpu, with and without--all-features, and the compose tests ofdarner-gpu(the exposure tests among them; 7 passed), reported clean by the porter; exact clippy flags not kept.cargo xtask policy: ok (as reported).DARNER_EXPOSUREunset or 0 the present path is as before.cargo clippy --workspace --all-targets --locked -- -D warnings, the same with--all-features,cargo test --workspace --locked.WIP:comes off:DARNER_COMPOSER_ASIDE=1while the composer is pending): the game keeps running and shows the plane as it is, once, with no repeatedtwo-plane composer not madelines.Spec dependence
Checklist
main: the exposure fallback and read. Both commits are about #305's follow-up on the same function.docs/asset-policy.md. (cargo xtask policyok on the branch; text only.)Checked for overlap
crates/darner-gpu/src/compose.rs, as this does. A textual conflict is likely there, most of all with #143, whose first hunk (about lines 13 to 18) is a few lines from ours (about 23 to 31). iBooM72 warned on #305 aboutCONSTANTSin that file.Host::presentnext to this (iBooM72 noted it on #305) andhost/menu.rs. Itshost.rshunks are well below ours; #143 also editshost.rsnear ours (about line 20095). Many other open PRs listhost.rsorhost/menu.rs; I did not compare them all.docs/findings.md. Their hunks are on other lines; #459's starts a few lines below ours. A trivial merge is possible; I do not claim it is conflict-free.This change was made with AI assistance (Claude Code).
d324094f5dto372c0c6c76Closing this old-engine PR because post-merge replaced the code it fixes: the EXPOSURE composer (
compose.rs) is gone, and brightness there is the title's own GAMMA row (settings.rs:557-575).Written with AI assistance (Claude Code).
Reopened: Main is the default branch again, so the close note above no longer applies.
Written with AI assistance (Claude Code).
WIP: [pr-fix][rendering][lighting] EXPOSURE: the composer fallback is bounded, and the offset is read onceto WIP: EXPOSURE: the composer fallback is bounded, and the offset is read onceView 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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.