Raw Input Buffer
本模组旨在减少由 Minecraft 默认鼠标处理机制引起的输入延迟、微卡顿以及帧率下降。在使用高于 1000 Hz 轮询率的设备时,这种影响尤为明显:在移动视角时,帧率可能会下降 50-70%,具体幅度取决于轮询率。安装此模组后,你将能够以高于 1000 Hz 的轮询率运行且无任何卡顿。
我的测试使用的是最高支持 8000 Hz 轮询率的鼠标。
解决方案:
本模组拦截并替换了 Minecraft 的鼠标处理逻辑。不再依赖 GLFW,而是直接与 Windows 内核通信,并通过一个隐藏的窗口类将鼠标轮询卸载到专用的异步后台线程中。
当游戏内光标被锁定后,标准的传统鼠标数据将不再产生,从而释放 CPU 资源。
兼容性:
仅限 Windows 操作系统:本模组依赖于原生的 Windows API,在其他操作系统上会自动禁用自身。
致谢
我在大约 4-5 周前创建了此模组,但随后注意到 decce6 近期在 Ixeris 中添加了类似的概念。尽管两者的实现方式不同,但都能达到相似的效果。建议你两者都尝试一下。
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
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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧