SleddingMouseFix
Fixes multi-second freezes during mouse movement with high polling rate mice (2kHz+). Worst frame measured: 6713ms -> 20ms.
模組介紹 作者原文
Sledding Mouse Stutter Fix
Fixes the multi-second freezes that happen while moving the mouse, if you use a high
polling-rate mouse (1000 Hz+). The game locks up until you stop moving.
Measured effect: worst frame during heavy mouse movement went from 6,713 ms → 20 ms.
Client-side only. Safe in multiplayer — it changes nothing for other players.
What causes it
The game's window has mouse-in-pointer mode enabled. Every mouse report triggers a
WM_NCHITTEST window message, and letting that message reach the default handling re-enters
the message pump and generates more hit-tests — a self-amplifying storm that scales with your
mouse's polling rate. At 2 kHz this was measured at over 80,000 window messages/second and a
single frame lasting 6.7 seconds.
The fix
Answers WM_NCHITTEST directly for points inside the game window's client area, without letting
it re-enter. Everything else (border dragging, resizing) is untouched.
Settings
UserData/MelonPreferences.cfg:
| Key | Default | Meaning |
| --- | --- | --- |
| Enabled | true | Set false to disable the fix without removing the mod. |
| LogStats | false | Log how many hit-tests were handled every 10s. |
Source, full write-up, and a clean drop-in fix for the developer
github.com/mitchellcairns/sledding-mouse-fix
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: