[pr-feature][rendering] Lens flares down (DARNER_LENS_FLARE=0, off by default; F1 PICTURE > LENS FLARES, live) #16
Loading…
Reference in a new issue
No description provided.
Delete branch "Jesper-A/Darner:pr6-lens-flare"
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?
Depends on #12
Contributor role (optional)
What it changes
Re-filed from an earlier CodeFloe PR (that repo is gone; nothing was migrated). Same branch and commit.
Base: the branch (4 commits: the 2 of
pr6-vignetteand 2 of its own) is on4db98e011, themaincommit it was cut from.mainis now4a92569fb. Not rebased (WIP; we rebase before WIP comes off, or sooner if you ask). A text-only trial merge (git merge-tree --write-tree --name-only trustno1/main pr6-lens-flare) conflicts incrates/darner-gpu/src/host/menu.rs(the F1 menu table) only;README.md,apps/darner/src/play.rs,apps/darner/src/run.rsandcrates/darner-hle/src/lib.rsmerge cleanly.This is a draft and it stays one until the vignette PR (#12) is merged. It has not been run in the game; the cargo results are below.
This branch carries the two commits of the vignette PR (#12) under its own. They share the new files
view_fx.rsandviewhook.rsand the F1 row code, so this change cannot stand onmainalone. Until #12 merges, this PR's "Files changed" also shows the vignette. This PR's own part is the last two commits (8dee95499,696d53064): 7 files against the vignette branch (README.md,apps/darner/src/play.rs,apps/darner/src/run.rs,crates/darner-gpu/src/host/menu.rs,crates/darner-gpu/src/view_fx.rs,crates/darner-hle/src/viewhook.rs,docs/findings.md). It contains no depth-of-field code (that is branchpr4-dof).New switch:
DARNER_LENS_FLARE=0. Default: not set, meaning the game's own lens flares, nothing changed and no byte of the title written. With the switch at 0 the lens flares are turned down to their least.How: the title updates its picture-adjustment presets once a frame, first calling a routine for a fading one. A call-site redirect (
darner_loader::callhook::redirect_call, indarner_hle::viewhook) puts a routine of ours before that call. With the switch at 0 it looks up the title's preset for the least flares (by its hash,view_fx::LENS_FLARES_MIN) in the title's own preset table, with the title's own lookup, and applies it at strength 1 with the title's own apply, the way the title applies its presets itself. With the switch on or unset, nothing is looked up.darner_gpu::view_fx); F1 > PICTURE > LENS FLARES (ON / OFF) changes it while the game runs.1arms it with the flares on). Unset: no hook is installed and nothing is written; the F1 row says NOT ARMED.lens flares: NOT ACTIVEis logged and F1 shows NOT ACTIVE. If this build's table has no such preset, one warning is logged, nothing is applied and F1 shows MISSING. Offsets are for the one known build of the title.docs/findings.mdentry, the name inplayers_owninapps/darner/src/play.rs.Credit: a port of the lens flare part of a pull request in the project's earlier GitHub repository (author NICKNAMErutschovkonikovan; that repository is gone, so there is no link). The idea, the place in the title's code, the table and the offsets are theirs. The code is re-written with our names for this tree. The commit message carries a
Co-authored-byline for them. They had it on by default; here it is off by default.No upstream issue covers this, so there is no
FixesorRefsline.Spec dependence
How it was tested
696d53064(branchpr6-lens-flare, based on4db98e011, including the vignette commits;mainhas moved, see Base).cargo clippy --workspace --all-targets --locked -- -D warningswith-A clippy::unnecessary_lazy_evaluationsadded: passed. The exact command without that flag was not run.cargo clippy --workspace --all-targets --all-features --locked -- -D warnings, the same flag added: passed.darner-hleanddarner(the crates this touches outside the GPU crate): passed.darner-gpu, full library: one test failed,watch::tests::ask_once_by_res_splits_reservations_without_refusals(once alsowatch_pipe_epoch_tests::ask_once_delta_reask_direct_carves_refreshes_and_updates_page_epochs). It is in a test file this change does not touch and it passes when run alone. We did not runmainfor comparison, so we do not know whether it is flaky or an old failure.cargo test --workspace --lockedas one command was not run.cargo xtask policy: passed.main.Checklist
main. (Not yet: it carries the two vignette commits. Own part: 7 files on top of #12. To be ticked when #12 has merged.)docs/asset-policy.md. (Text only;cargo xtask policypassed.)view_fx.rsandviewhook.rs, which this extends)Checked for overlap
host/menu.rs,host/panel.rsandhwrt.rs: same filemenu.rsas this change's F1 row, different change. #12 (ours, same new files; this depends on it); branchpr4-dof(ours,DARNER_DOF=0) also createsview_fx.rsandviewhook.rs. Expect small merge conflicts in the F1 menu table.README.md,crates/darner-gpu/src/lib.rs,docs/findings.md); #7 (docs/findings.md); #8 (README.md,crates/darner-gpu/src/host/menu.rs,crates/darner-gpu/src/lib.rs,docs/findings.md); #9 (README.md,apps/darner/src/play.rs,apps/darner/src/run.rs,crates/darner-gpu/src/host/menu.rs,crates/darner-gpu/src/lib.rs,crates/darner-gpu/src/view_fx.rs,crates/darner-hle/src/lib.rs,crates/darner-hle/src/viewhook.rs,docs/findings.md); #10 (README.md,docs/findings.md); #11 (README.md,apps/darner/src/run.rs). #5 share no file. Different changes; whichever lands first, the others take its rows when they are rebased.Update 2026-12-03: marked ready as it stands, by decision, although it still depends on #12. Its two vignette commits (
0ac6486ddandb566aa117) sit under this one, so merging this also brings in #12, or #12 can go first. The 'draft until #12 is merged' and 'not rebased' wording above is out of date, and the 'one change' checkbox stays unticked for that reason. It has not been run in the game at all; only the cargo results above exist. The maintainer will handle the rebase.This change was made with AI assistance (Claude Code).
darner rig, F1 AUTO-DETECT row, per-start switches (DARNER_AUTO_SWITCHES, on by default, =0 turns it off) #25WIP: [pr-feature][rendering] Lens flares down (DARNER_LENS_FLARE=0, off by default; F1 PICTURE > LENS FLARES, live)to [pr-feature][rendering] Lens flares down (DARNER_LENS_FLARE=0, off by default; F1 PICTURE > LENS FLARES, live)View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
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.