Mouse look stutters after ~0.5s (Raw Input → right stick mapping) #11

Open
opened 2026-12-05 17:21:41 +00:00 by github-bot · 1 comment
Owner

@⁠hiracer1988-byte on GitHub · 2026-12-05 13:53 UTC · original

Enhanced larp v2
Mouse look works for about half a second then starts stuttering/juddering when looking around or in the map.
Only happens inside LARP

Desktop mouse is perfectly smooth
Game FPS stays high and stable
Happens with both look and map view
Tried lowering polling rate from 1000 Hz — no difference

Looks related to how mouse deltas are accumulated and then scaled/clamped to the right stick every poll in crates/larp-hle/src/modules/gameinput/mouse.rs (the RAW_DX/RAW_DY swap + 0.045 * sens clamp path).Using the latest enhanced fork.

**@⁠hiracer1988-byte** on GitHub · 2026-12-05 13:53 UTC · [original](https://github.com/gamingwithhomie/larp/issues/11) Enhanced larp v2 Mouse look works for about half a second then starts stuttering/juddering when looking around or in the map. Only happens inside LARP Desktop mouse is perfectly smooth Game FPS stays high and stable Happens with both look and map view Tried lowering polling rate from 1000 Hz — no difference Looks related to how mouse deltas are accumulated and then scaled/clamped to the right stick every poll in crates/larp-hle/src/modules/gameinput/mouse.rs (the RAW_DX/RAW_DY swap + 0.045 * sens clamp path).Using the latest enhanced fork.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 17:21:42 +00:00
Author
Owner

@⁠gamingwithhomie on GitHub · 2026-12-05 14:51 UTC · original · edited 2026-12-05 15:03 UTC

Fixed in v2026.12.05-enhanced-v3 (and included in v4)! Good catch — the 250 Hz (4 ms) poll loop was wiping RAW_DX/RAW_DY faster than the game's 30–60 Hz reads, causing beat-frequency judder. Replaced it with a polling-rate-independent velocity low-pass filter (~20 ms tau) + deadzone-clear curve in mouse.rs. Please test the latest release and let us know how smooth it feels!

**@⁠gamingwithhomie** on GitHub · 2026-12-05 14:51 UTC · [original](https://github.com/gamingwithhomie/larp/issues/11#issuecomment-7439928657) · edited 2026-12-05 15:03 UTC Fixed in **[v2026.12.05-enhanced-v3](https://github.com/gamingwithhomie/larp/releases/tag/v2026.12.05-enhanced-v3)** (and included in **[v4](https://github.com/gamingwithhomie/larp/releases/tag/v2026.12.05-enhanced-v4)**)! Good catch — the 250 Hz (4 ms) poll loop was wiping `RAW_DX`/`RAW_DY` faster than the game's 30–60 Hz reads, causing beat-frequency judder. Replaced it with a polling-rate-independent velocity low-pass filter (~20 ms tau) + deadzone-clear curve in `mouse.rs`. Please test the latest release and let us know how smooth it feels!
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/gamingwithhomie--larp#11
No description provided.