Language

Raw Input Buffer

Raw Input Buffer

Modrinth

Reduces input lag and frame rate drops caused by mouse polling events - allowing you to use high polling rate mice

25.8k downloads 19 followers updated 2mo ago
latest v1.1.1 Modrinth
Fabric 1.21 – 26.1.2 Game-mechanicsManagementOptimization

Raw Input Buffer

This mod aims to reduce input lag, micro-stutters, and frame rate drops caused by Minecraft's default mouse handling. This is especially noticiable on polling rates above 1000 Hz, where frame rates can drop by 50-70% when moving the camera around, depending on the polling rate. With this mod installed you'll be able to use polling rates higher than 1000 Hz with no stutters.

My testing was done using a mouse with a polling rate of up to 8000 Hz.


Solution:

This mod intercepts and replaces Minecraft's mouse handling. Instead of relying on GLFW, the mod communicates directly with the Windows Kernal and offloads mouse polling to a dedicated, asynchronous background thread using a hidden window class.
When the cursor is locked in game, standard legacy mouse data is no longer generated, freeing up CPU resources.

Compatability:

Windows OS only: This mod relies on native Windows APIs and will automatically disable itself on other operating systems.


Credits

  • Mod: Walksy

I created this mod around 4-5 weeks ago but noticed a similar concept was recently added to Ixeris by decce6. While the implementations differ, both mods achieve similar results. I recommend you try them both out.

Versions

Release
1.1.1
fabric · 26.1, 26.1.1, 26.1.2 · 2mo ago
fix:accumulated mouse deltas flushed when closing a HandledScreen
5.9k
Release
1.1.0
fabric · 26.1, 26.1.1 · 2mo ago
577
Release
1.1.4+1.21.9
fabric · 1.21.9, 1.21.10, 1.21.11 · 3mo ago
12.6k
Release
1.1.4+1.21
fabric · 1.21, 1.21.1, 1.21.2 · 3mo ago
Fix: reset mouse deltas on cursor grab/release
4.4k
Release
1.1.3-1.21.9
fabric · 1.21.9, 1.21.10, 1.21.11 · 3mo ago
231
Release
1.1.3-1.21
fabric · 1.21, 1.21.1, 1.21.2 · 3mo ago
Remove chat debugging (oops)
81
Release
1.1.2+1.21.9
fabric · 1.21.9, 1.21.10, 1.21.11 · 3mo ago
113
Release
1.1.2+1.21
fabric · 1.21, 1.21.1, 1.21.2 · 3mo ago
fix: not being able to drag items around in user's inventory
57
Release
1.1.1+1.21.9
fabric · 1.21.9, 1.21.10, 1.21.11 · 3mo ago
54
Release
1.1.1+1.21
fabric · 1.21, 1.21.1, 1.21.2 · 3mo ago
fix: race conditions when handling mouse button events
22
Release
1.1.0+1.21.9
fabric · 1.21.9, 1.21.10, 1.21.11 · 3mo ago
1.1k
Release
1.1.0+1.21.8
fabric · 1.21, 1.21.1, 1.21.2 · 3mo ago
587

Comments 0

No comments yet. Be the first to share your thoughts.