Built a real-time input lag detector in C++ — Lagwatch

Правка en1, от Aviraj29, 2026-06-16 15:46:42

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

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Aviraj29 2026-06-16 15:46:42 1106 Initial revision (published)