Gear GeeksGaming

Mouse switches and debounce

The switch under your left mouse button contributes more latency than your wireless link, your polling rate and your sensor combined. It is also the component most likely to fail. Both facts come from the same piece of physics.

Gaming MiceUpdated 7 min read

Why bouncing happens

A mechanical switch closes by pressing two pieces of metal together. At the scale those pieces operate on, they are springy: they meet, rebound, meet again, rebound less, and settle. The whole sequence takes a few milliseconds and produces a signal that goes on, off, on, off, on before staying on.

Firmware cannot report every one of those transitions as a click, so it waits: once it sees the first transition, it ignores further changes for a fixed window, then reports one clean press. That window is debounce delay, and its length is a direct trade against reliability.

click latency = debounce delay + report wait + radio hop typical mechanical: 4 ms + 0.5 ms + 0.5 ms = 5 ms typical optical: 0 ms + 0.5 ms + 0.5 ms = 1 ms

Four milliseconds is a small number in isolation and a large one in this context: it is larger than the entire wireless penalty, larger than the polling difference between 1000 and 8000 Hz, and comparable to a whole frame at 240 fps.

Switch types

Mouse switch technologies and their properties.
TypeHow it detectsDebounce neededFailure modeFeel
Mechanical (Omron, Kailh, Huano)Metal contacts touching2 to 8 msDouble-clicking from contact wearCrisp, wide variety available
Optical (Razer, Glorious, Pulsar)Light beam interrupted by a shutterZeroRare. No contact to wear.Slightly softer, less defined reset
Optical-mechanical hybridMechanical feel, optical detectionZeroRareAttempts to get both
Hall effect / magneticMagnetic field changeZeroRareUncommon in mice, adjustable actuation

What "feel" means for a mouse switch

Three properties, and manufacturers publish almost none of them:

  • Actuation force (typically 45 to 75 gf). Lighter is faster to spam and easier to press accidentally.
  • Pre-travel: how far the button moves before the switch actuates. Short pre-travel feels immediate; long pre-travel feels mushy.
  • Reset distance: how far the button must return before it can be pressed again. Short reset makes rapid double-taps easier. This is the property people are describing when they say a mouse "spams well".

These are set by the switch and by the button lever design together, which is why the same switch feels different in two mice. It is also why switch swaps produce less change than people expect.

Diagnosing a dying switch

Double-clicking develops gradually. The progression is predictable:

  1. Occasional double registration in drag operations on the desktop, which you dismiss.
  2. Occasional double-taps in game, usually noticed as a wasted shot.
  3. Consistent doubles on light presses, reliable behaviour on firm presses.
  4. Doubles on every press.

If you are at stage 1 or 2, raising debounce delay in software will mask it for months at a cost of a few milliseconds. That is a legitimate stopgap. It is not a repair, and the underlying wear continues.

Hot-swap sockets are the underrated feature

A small but growing number of mice put the main switches in sockets rather than soldering them. That turns a terminal failure into a two-minute repair with a five-pound part, and it lets you change switch feel without a soldering iron. If two mice are otherwise equal, this is a genuine tiebreaker, and it is worth more than most of the specifications printed above it on the box.

Related reading

Frequently asked questions

What is debounce delay?

A metal switch contact does not close cleanly: it bounces, making and breaking contact several times over a few milliseconds before settling. Firmware waits a fixed period to be sure the signal has settled before reporting a click, and that wait is debounce delay. It is typically 2 to 8 ms and it is pure added latency.

Are optical mouse switches better?

For latency and longevity, yes, unambiguously. An optical switch interrupts a light beam, and light beams do not bounce, so debounce delay can be zero. There is no contact to oxidise or wear, so the double-click failure mode largely disappears. The trade is tactile feel, which many people find less crisp, and a smaller range of available switch characteristics.

Why does my mouse double-click on a single press?

The metal contacts inside a mechanical switch oxidise and wear, so the bounce period lengthens until it exceeds the firmware's debounce window. The firmware then interprets the tail of the bounce as a second press. It is a wear failure, it gets worse over time, and it is the most common reason a mouse is retired.

Can I fix a double-clicking mouse?

Sometimes. Some mice let you raise the debounce delay in software, which masks the symptom at the cost of latency. Some switches can be cleaned or bent back into tolerance, which is a temporary fix. The reliable repair is replacing the switch, which requires soldering unless the mouse has hot-swap sockets.

Does a lower debounce setting risk false clicks?

Yes, and that is the trade. Lower the setting and a worn switch will register its bounce as extra clicks. On a new switch, low settings are usually safe. If you set it low and start seeing doubles, the switch is telling you it is wearing out.

Sourcing. Figures on this page are either derived from published engine or hardware constants, or computed from the formulas shown. Manufacturer-stated specifications are labelled as such. Found an error? Send a correction.