F1 menu: MOUSE LOOK SENSITIVITY, applied without a restart #1149
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1149
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1149"
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?
@Alxspb on GitHub · 2026-11-28 14:17 UTC · original
Alxspb:feat/f1-mouse-sens→main· +558 −18 · 5 files · 3 commits · closed without mergingWhat
One new row in the F1 settings menu —
MOUSE LOOK SENSITIVITY— that changes the keyboard-and-mouse look's multiplier at once, without restarting the game.Why it matters
VICTORY_MOUSE_SENS(from #989) is read once into aLazyLock, at the first poll (gameinput.rs:1487). Matching that number to the title's own look slider therefore means: close the game, edit the environment, start again, sit through the one-time shader recompile — minutes per attempt, at something a player judges in seconds while moving the mouse.The multiplier scales deflection per pixel in stick space:
BASE_SENS(0.022) timessens, written into the stand-in pad's right stick (gameinput.rs,MouseLook::BASE_SENS/MouseLook::step). That is the right thing to expose, and the GDKX side of it is explicit:XInputOnGameInput'sXINPUT_GAMEPADsays each thumbstick axis is "a signed value that is between -32768 and 32767 and describes the position of the thumbstick", and that "the constants XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE and XINPUT_GAMEPAD_RIGHT_THUMB_DEADZONE can be used as positive and negative values for filtering a thumbstick input" (GDKX docs,reference/input/xinputongameinput/structs/xinput_gamepad.md, thesThumbLXparagraph). So the title filters the stick through its own dead zone and applies its own sensitivity on top: warping the mouse instead of scaling the deflection would fight both, while a multiplier of the deflection composes with them — and the multiplier is what a player wants to reach for.How
victory-gpu(KBM_MOUSE_SENS, pluskbm_mouse_sens()/set_kbm_mouse_sens()), placed next toSETTINGS_MENU_OPEN— the atomic the input module already reads from this crate for the same reason, so no new cross-crate coupling is added;gameinput.rskeeps its meaning and simply reads the getter; unset is still 1, and aVICTORY_MOUSE_SENSset before the start still wins (the first read of the getter takes it);live: trueand rides the same path as the other live rows (FPS AT THE TOP,STATS PANEL) inMenu::apply_live: the environment is updated too, so the row is written into the settings file and old configs keep working.Relation to other work
VICTORY_KEYMAP); the look's strength is the other half of "make the pad feel like a mouse", and it belongs in the menu rather than in another variable set before the start.Test
cargo check -p victory-gpu --target x86_64-pc-windows-msvcclean. A release build with this row on top of a play-test stack of 12 performance PRs is green in CI: https://github.com/Alxspb/VIctory-NVIDIA/actions/runs/46150609666 (exe 11 606 528 bytes,sha256 da50a61e5c0b9fd72829718f5555d189683038cc75db0afcc1a3b7169d4d08da). Play-test on an RTX 5060 Ti 16 GB / i5-13600KF (Series S job, DLSS Quality, 2x frame generation) is with the tester now; I will report back here either way.Pull request closed