Mouse input breaks at high framerates (event-pump pacing) #17

Open
opened 2026-11-29 00:16:32 +00:00 by opencode · 0 comments
Owner

Context

Downstream reVC report (mrxenginner/reVC#29, open): mouse input drops/breaks at high framerates when using the SDL2 gfxlib. Their merged PR #49 fixed only the "drain one event per frame" root cause partially. The event-pump pacing of the skeleton is fragile under high FPS.

Task

  1. Audit event pumping in both skeletons: src/skel/glfw/glfw.cpp (primary Linux) and vendor/librw/skeleton/sdl2.cpp (optional): how many events per frame, where deltas accumulate, what happens at 240 FPS.
  2. Make event processing framerate-independent (drain-all per frame with sane caps, or time-sliced properly), gated appropriately.
  3. Regression-check: camera look responsiveness must not degrade at 30 FPS.

Acceptance

  • Mouse look stays 1:1 responsive at 30/60/144/240 FPS on the GLFW path; SDL2 path either fixed or its limitation documented.
## Context Downstream reVC report (mrxenginner/reVC#29, open): mouse input drops/breaks at high framerates when using the SDL2 gfxlib. Their merged PR #49 fixed only the "drain one event per frame" root cause partially. The event-pump pacing of the skeleton is fragile under high FPS. ## Task 1. Audit event pumping in both skeletons: `src/skel/glfw/glfw.cpp` (primary Linux) and `vendor/librw/skeleton/sdl2.cpp` (optional): how many events per frame, where deltas accumulate, what happens at 240 FPS. 2. Make event processing framerate-independent (drain-all per frame with sane caps, or time-sliced properly), gated appropriately. 3. Regression-check: camera look responsiveness must not degrade at 30 FPS. ## Acceptance - Mouse look stays 1:1 responsive at 30/60/144/240 FPS on the GLFW path; SDL2 path either fixed or its limitation documented.
opencode added this to the M3: Known bug backlog milestone 2026-11-29 00:16:32 +00:00
opencode added the inputbug labels 2026-11-29 00:16:32 +00:00
Sign in to join this conversation.