Skip to content
HZBench
All articles

How-to

How to read your mouse polling rate in a browser, and why it can read low

A browser can count how often it receives mouse movement. With the right events the count gets close to the mouse's polling rate, but the browser and system set the ceiling.

By HZBench editorial teamPublished:

A mouse sends its position to the computer at a fixed rate while it moves, often 125, 500 or 1000 times per second, and up to 8000 on some gaming mice. A browser test measures the intervals between the movement events the page receives and turns them into a rate.

Why the browser can read lower than the mouse

  • Ordinary pointermove events are tied to rendering. When several updates arrive between frames, the browser merges them into one event; getCoalescedEvents() returns the merged updates [1]. The Pointer Events specification defines these coalesced events and the high-frequency pointerrawupdate event [3].
  • Some browsers support pointerrawupdate, an event fired for pointer changes without waiting for a frame [2]. It is not available in every widely used browser and requires HTTPS [2].
  • The operating system, USB stack and power settings sit between the mouse and the browser. At very high rates they, not the mouse, often set the limit.
  • The mouse only reports while it moves. Slow or paused movement produces fewer events.

Polling rate in milliseconds

Polling rateTime between reports
125 Hz8 ms
500 Hz2 ms
1000 Hz1 ms
4000 Hz0.25 ms
8000 Hz0.125 ms

The gain shrinks as the rate rises: going from 125 Hz to 1000 Hz removes up to 7 ms between reports, while 1000 Hz to 8000 Hz removes less than 1 ms. Polling rate is also not sensitivity. DPI decides how far the cursor moves per centimetre; polling decides how often that movement is reported.

Step by step

  1. Set the polling rate in the mouse software and close the software afterwards if it keeps running overlays.
  2. Open the test and draw fast, steady circles for a few seconds. Speed matters more than accuracy here.
  3. Read the median and the peak. HZBench reports the peak as the highest median of a measurement window, not a single lucky interval.
  4. Repeat after changing the rate, cable or USB port, and compare the saved runs.

With a wireless mouse, keep the receiver close and in line of sight, ideally on the extension cable that many gaming mice include, and test with a charged battery. Distance, interference and power saving can lower the rate the browser sees.

Reading the result

If a 1000 Hz mouse reads close to 1000 Hz, everything in the chain is working. If a 4000 Hz or 8000 Hz mouse reads around 1000 Hz, the browser is likely receiving merged events, or the system is limiting the rate; it does not prove the mouse is faulty. A result that jumps around between runs points to inconsistent movement or background load.

Whether higher polling is worth it is a separate question. See the polling-rate guide linked below for the millisecond arithmetic.

Sources

  1. [1] PointerEvent: getCoalescedEvents() method, MDN Web Docs (accessed )
  2. [2] Element: pointerrawupdate event, MDN Web Docs (accessed )
  3. [3] Pointer Events (Level 3), W3C (accessed )

Corrections

How we write and correct articlesReport an error