Aviraj29's blog

By Aviraj29, history, 5 months ago, In English

Hey CF!

Built a free tool called Lagwatch that measures your mouse and keyboard input lag live in real time.

As CP guys we care about our setup — I always wondered what my actual mouse polling rate was. No free tool measured it accurately so I built one.

What it does: - Measures input latency with microsecond precision - Shows live mouse polling rate (125/500/1000Hz) - Detects lag spikes instantly - Separate stats for mouse and keyboard

Built in C++ using: - Windows Raw Input API for OS level input hooks - std::chrono for microsecond timing - ImGui + DirectX11 for GUI - Abstract OOP — InputDevice base class with Mouse and Keyboard subclasses

Interesting bug — polling rate was showing 1-7Hz instead of 1000Hz. Fixed by separating counting logic from reading logic.

Download (Windows 10/11): https://github.com/Aviraj2929/lagwatch/releases/download/v1.0/lagwatch.exe

Source: https://github.com/Aviraj2929/lagwatch

Curious — what polling rate does your mouse show? Mine shows 139Hz on a basic mouse

  • Vote: I like it
  • -2
  • Vote: I do not like it