In high-speed arcade action, a delay of even a few frames can be the difference between a high score and a game over. To guarantee absolute timing precision, we spent weeks benchmarking raw input pipelines inside our gaming engine.
Sub-millisecond Polling
Standard browser inputs throttle keystrokes and button clicks, causing variable frame delays. By utilizing raw webgame input listeners and optimizing callback loops, we successfully squeezed our internal polling rates down to 2ms. Keystrokes are captured, queried, and pushed directly to the physics step without buffering cycles.
Gamepad Polling API
Testing with retro-arcade controllers and standard gamepads, we implemented custom controller mappings using the Gamepad API. With linear axis normalization and hardware deadzone adjustments, the responsiveness of the active run feels sharp, immediate, and completely tactile.