[pr-feature][rendering][shaders] SCREEN EFFECTS page: turn off vignette, aim vignette, dark edges, overlay, lens flare, depth of field #483
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!483
Loading…
Reference in a new issue
No description provided.
Delete branch "theforgotten669/Darner:screenfx-toggles"
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?
What it changes
Adds a SCREEN EFFECTS page to F1 with six rows, all ON (the game's own) by default, each backed by a switch that is off by default (ported from VIda):
DARNER_NO_VIGNETTE,DARNER_NO_SCREEN_GRADIENT,DARNER_NO_SCREEN_OVERLAY,DARNER_NO_DOF: patch the PostFX / depth of field programs before translation, only where a program has exactly the shape looked for (darner-shaderemit/postfx.rs). Stripped programs get their own cache key; every other key stays the same.DARNER_NO_AIM_VIGNETTE,DARNER_NO_LENS_FLARE: patch the 1.0.2.1 executable (darner-loadervi_patch.rs). The bytes are compared first, and any other build is left alone and logged.Rows are restart-only and are the player's own settings (
players_own). README and en/zh-CN strings updated.Contributor role (optional)
How it was tested
4da8932cargo clippy --workspace --all-targets --locked -- -D warningspassed;cargo clippy --workspace --all-targets --all-features --locked -- -D warningspassed.cargo test --workspacenot run.Checklist
main.docs/asset-policy.md(exe bytes are site signatures at per-build offsets).Checked for overlap
Thanks for the page. Your body says the overlap search was not done yet, so here is what I found. Three of my open PRs cover some of the same effects:
DARNER_NO_VIGNETTE(andDARNER_NO_AIM_VIGNETTEfor the aiming / fast-moving one)DARNER_VIGNETTE=0(#12)DARNER_NO_DOFDARNER_DOF=0(#9)DARNER_NO_LENS_FLAREDARNER_LENS_FLARE=0(#16, depends on #12)Dark edges (
DARNER_NO_SCREEN_GRADIENT) and the overlay (DARNER_NO_SCREEN_OVERLAY) are only in your PR.The method differs. Mine hook the title's own code at run time (
darner-hle/src/viewhook.rs,darner-gpu/src/view_fx.rs). Yours patch shaders before translation (vignette, dark edges, overlay, depth of field) and the 1.0.2.1 exe (aim vignette, lens flare). For lens flare both go through the call at +0x494dcb, so both touch the same call site.Shared files:
README.md,apps/darner/src/play.rs,apps/darner/src/run.rs,crates/darner-gpu/src/host/menu.rs. If both land, each shared effect would have two switches and two F1 rows (yours on SCREEN EFFECTS, mine on PICTURE).Would you like to align? For example, I could close mine for the effects your page covers, or your page could reuse my switch for those rows. I have not decided; I would like to hear what you prefer, and the maintainer may have a view too.
Written with AI assistance (Claude Code).
Thanks for checking @Jesper-A ! I don't have a strong opinion tbh, reading it like this, your env makes more sense here than those in this PR.
As this PR seems to contain more effects, you could close yours and I'll reuse your mean of doing? Do you have others opinions on the new screen effects too?
Thanks, that works for me.
Proposal: your PR keeps the page and the extra effects (dark edges, overlay, aim vignette). For the three effects we both cover, you reuse my method (the run-time hook in
darner-hle/src/viewhook.rsanddarner-gpu/src/view_fx.rs) and my switch names:DARNER_DOF=0,DARNER_VIGNETTE=0,DARNER_LENS_FLARE=0.Once #483 carries those three, I will close my PRs #9 (depth of field), #12 (vignette) and #16 (lens flare) with a link to #483, so there is no gap.
You are welcome to take the code from those branches. Cherry-pick or copy, whichever is easier for you, and credit it as you see fit. Note that #16 depends on #12.
On the new effects (aim vignette, dark edges, overlay): thanks for adding them. I have not tested them, so I have no opinion on them yet.
Written with AI assistance (Claude Code).
Sounds like a good plan to me!
I'll do that early morning and tag you here once done - thanks as well for your feedback and collaboration it's refreshing :)