[pr-feature][rendering] Vignette off (DARNER_VIGNETTE=0, off by default; F1 PICTURE > VIGNETTE, live) #12
Loading…
Reference in a new issue
No description provided.
Delete branch "Jesper-A/Darner:pr6-vignette"
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?
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 (2 commits) is on
4db98e011, 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-vignette) 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. It has not been run in the game; the cargo results are below.
New switch:
DARNER_VIGNETTE=0. Default: not set, meaning the game's own vignette (the darkened picture edges), nothing changed and no byte of the title written. With the switch at 0 the vignette is taken off.How: every vignette the title draws, whatever asked for it, reaches the card through one packing routine. With the switch at 0, an entry hook (
darner_hle::viewhook,darner_loader::callhook::hook_entry) hands that routine a per-thread copy of the 0x40-byte vignette with its strength (a float at +0x30) set to 0, the strength an empty vignette has. The title's own values are never written.DARNER_VIGNETTEis read at each use (darner_gpu::view_fx), so F1 > PICTURE > VIGNETTE (ON / OFF) changes it while the game runs.1arms it with the vignette on, and F1 then turns it off and on). Unset: no hook is installed and nothing is written; the F1 row says NOT ARMED, and saving ON or OFF in F1 arms it from the next start.vignette: NOT ACTIVEis logged once and F1 shows NOT ACTIVE. The offsets are for one known build, the onemousehookalready knows.docs/findings.mdentry, and the name inplayers_owninapps/darner/src/play.rs.Diff against
4db98e011: 9 files (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(new),crates/darner-hle/src/lib.rs,crates/darner-hle/src/viewhook.rs(new),docs/findings.md).Credit: a port of the vignette 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 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
b566aa117(branchpr6-vignette, based on4db98e011;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. (git diff --stat 4db98e011 b566aa117: the 9 files above. The branch is on4db98e011, not on currentmain; a trial merge conflicts inhost/menu.rs, see Base.)docs/asset-policy.md. (Text only;cargo xtask policypassed. The hook's byte patterns follow the style ofmousehook.rs.)Checked for overlap
host/menu.rs,host/panel.rsandhwrt.rs: same filemenu.rsas this change's F1 row, different change. Our own re-filed branches overlap:pr4-dof(depth of field,DARNER_DOF=0) also createsview_fx.rsandviewhook.rs, so whichever merges second needs a rebase; our lens flare branchpr6-lens-flarebuilds on this one. Other F1 rows from our earlier CodeFloe PRs (not migrated) also editmenu.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; the 'draft' and 'not rebased' wording above is out of date, nothing was re-run in the game, and 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] Vignette off (DARNER_VIGNETTE=0, off by default; F1 PICTURE > VIGNETTE, live)to [pr-feature][rendering] Vignette off (DARNER_VIGNETTE=0, off by default; F1 PICTURE > VIGNETTE, 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.