First-person view toggle: DARNER_FIRST_PERSON=1, an F1 row or F7 (off by default, build 1.0.2.1) #447
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
Total time spent: 3 hours
Due date
Sheppard
3 hours
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!447
Loading…
Reference in a new issue
No description provided.
Delete branch "Sheppard/Darner:feature/first-person-toggle"
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?
Title:
[pr-feature][input] First-person view toggle: DARNER_FIRST_PERSON=1, an F1 row, F7 or both sticks clicked (off by default, build 1.0.2.1)
Contributor role (optional)
What it changes
The title's own test for first person (
0x140b79480) is true when the view mode at[0x145073c20() + 0x98]is 2; its camera selector (0x1408317a0) then picks the first-person camera. A new module,crates/darner-hle/src/fptrace.rs, puts an entry hook on that selector (the samecallhook::hook_entrythe native mouse hook uses, prologue checked) and keeps the view mode at 2 while the toggle is on. Switched off, it puts back the value it found. No camera is added and nothing else in the title is written.Three ways to switch it, all the same toggle:
DARNER_FIRST_PERSON=1, and a live F1 row FIRST-PERSON VIEW on the controls page (wired likeDARNER_VEHICLE_AUTO_CENTER, saved with the other settings);On another build the prologue differs, the hook is not installed and the log says so. The module's doc records what was tried and did not work, so nobody repeats it.
How it was tested
4400617(this branch, on main47d21cd).cargo xtask policy --staged: 9 files ok.Checklist
main.docs/asset-policy.md.Checked for overlap
🤖 Generated with Claude Code
First-person view toggle: DARNER_FIRST_PERSON=1, an F1 row, F7 or both sticks clicked (off by default, build 1.0.2.1)to [pr-feature][input] First-person view toggle[pr-feature][input] First-person view toggleto [pr-feature][input] F7 First-person view toggle[pr-feature][input] F7 First-person view toggleto [pr-feature][input] First-person view toggle: DARNER_FIRST_PERSON=1, an F1 row or F7 (off by default, build 1.0.2.1)[pr-feature][input] First-person view toggle: DARNER_FIRST_PERSON=1, an F1 row or F7 (off by default, build 1.0.2.1)to First-person view toggle: DARNER_FIRST_PERSON=1, an F1 row or F7 (off by default, build 1.0.2.1)Test needed — commit
a370eac5; what to check:The title's own test for first person (
0x140b79480) is true when the view mode at[0x145073c20() + 0x98]is 2; its camera selector (0x1408317a0) then picks the first-person camera. A new module,crates/darner-hle/src/fptrace.rs, puts an entry hook on that selector (the samecallhook::hook_entrythe native mouse hook uses, prologue checked) and keeps the view mode at 2 while the toggle is on. Switched off, it puts back the value it found. No camera is added and nothing else in the title is written.Three ways to switch it, all the same toggle:
DARNER_FIRST_PERSON=1, and a live F1 row FIRST-PERSON VIEW on the controls page (wired likeDARNER_VEHICLE_AUTO_CENTER, saved with the other settings);On another build the prologue differs, the hook is not installed and the log says so. The module's doc records what was tried and did not work, so nobody repeats it.
Evidence to post: card + driver, settings, commit tested, before/after (switch off vs on, two runs each), fps median and p99, and one line saying you looked at the picture.
Reply
testingto take this run; it's free again after 24 h with no results.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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.