Closed instead1337 closed 1 week ago
Hi there, very interesting point here.
I don't think that is mutch relevant for creators to have tweaked mouse/kbd buffers, anyway I'm testing CS 0.7 and I haven't any issues using different mouse/trackball/kbd with actual settings.
Anyway I agree: CS should avoid any mod/tweak that can cause problems and don't bring any appreciable benefits.
Good points, I'll remove this in the next commits.
Changing
MouseDataQueueSize
orKeyboardDataQueueSize
is a bad idea because these buffers are calibrated for optimal hardware and OS performance. Reducing them can cause input drops or misinterpretations, especially with high polling rates like 1000 Hz for a mouse.For instance, at 1000 Hz, a mouse generates 8 bytes per poll. A smaller buffer size can overflow in milliseconds if there's even slight system lag, leading to skipped or erratic inputs. Similarly, reducing the keyboard buffer can result in lost keystrokes or incorrect simultaneous keypress handling.
Increasing these values isn't much better - it adds latency, as inputs are delayed while the buffer fills.
Default values balance performance and reliability. Adjusting them often causes more problems than it solves, so it's better to focus on drivers or hardware upgrades if you’re experiencing issues.
Changed file