Fare ve klavyelerin gerçek polling rate (rapor hızı) değerini ölçen, 8000 Hz'e kadar destekleyen, tek .exe dosyalık hafif bir Windows uygulaması.
A lightweight, single-.exe Windows app that measures the real polling rate of mice and keyboards, up to 8000 Hz.
- Fare testi: 125 / 250 / 500 / 1000 / 2000 / 4000 / 8000 Hz modlarını gerçek zamanlı ölçer. Anlık, ortalama ve en yüksek hızı, kararlılığı, rapor aralığını (µs) ve son 15 saniyenin grafiğini gösterir.
- Klavye testi: Tuş olayları arasındaki süreleri ölçer, aralık histogramı çizer ve klavyenin polling rate'ini tahmin eder.
- Otomatik cihaz tespiti: Marka, model, VID/PID ve bağlantı türünü (USB, Bluetooth, PS/2) cihazın kendisinden okur. Birden çok fare veya klavye varsa o an kullanılanı seçer. İstenen cihaz listeden tıklanarak sabitlenebilir.
- Tek dosya: Kurulum, ek DLL veya .NET / VC++ runtime gerektirmez. 64-bit Windows 7, 8, 10 ve 11'de çalışır.
- Sade arayüz: Siyah zemin üzerine kirli beyaz yazılar ve grafikler.
- Releases sayfasından
PollingRateTest.exedosyasını indirip çalıştırın. - FARE sekmesi: Fareyi masada 2–3 saniye boyunca hızlı ve kesintisiz daireler çizerek hareket ettirin.
- KLAVYE sekmesi: Avucunuzu harf tuşlarının üzerine düz şekilde bastırıp kaldırın; bunu 10–20 kez tekrarlayın.
- Kısayollar (fare sekmesinde):
Boşlukduraklat,Rsıfırla,Escotomatik cihaz seçimine dön.
SmartScreen uyarısı: Uygulama dijital olarak imzalı olmadığından Windows ilk açılışta "Windows bilgisayarınızı korudu" uyarısı gösterebilir. Ek bilgi → Yine de çalıştır ile açabilirsiniz. Kaynak kodun tamamı bu depodadır.
Fare: Fare hareket ettiği sürece her polling döngüsünde bir HID raporu gönderir. Uygulama bu raporları Windows Raw Input ile yüksek öncelikli ayrı bir iş parçacığında alır. Her 100 ms'lik pencerede gelen rapor sayısını, QueryPerformanceCounter ile ölçülen gerçek süreye böler. Fare ayarlandığı hızın üzerinde rapor gönderemez, bu yüzden mod, ölçülen değerin (90. yüzdelik) sığdığı en küçük standart kademe olarak belirlenir.
Klavye: Klavye yalnızca tuş durumu değiştiğinde rapor gönderir; sürekli bir akış yoktur. Ancak iki ayrı rapor arasındaki süre polling aralığının altına inemez: 1000 Hz'de 1 ms, 8000 Hz'de 0,125 ms. Avuçla birçok tuşa aynı anda basıldığında çok sayıda kısa aralık oluşur. Histogramda bu aralıklar polling aralığının katlarında kümelenir ve en soldaki küme rapor aralığını verir. Bu nedenle klavye sonucu bir tahmindir. Az örnekle "en az X Hz" olarak gösterilir, örnek sayısı arttıkça kesinleşir.
- Pencere önde olsun. Windows, arka plandaki uygulamaların fare girişini kısıtlayabilir.
- Fareyi veya alıcıyı anakartın arka panelindeki bir USB portuna takın; hub ve ön panel portlarından kaçının.
- 8000 Hz'de yavaş hareket daha düşük değer gösterir. Bu normaldir, çünkü fare yalnızca hareket olduğunda rapor gönderir.
- Polling rate'i fare veya klavyenin kendi yazılımından (Razer Synapse, Logitech G HUB vb.) ayarlayın.
- İnternete bağlanmaz. Dosya yazmaz, kayıt defterine dokunmaz, yönetici izni istemez.
- Klavye yalnızca KLAVYE sekmesi açıkken ve pencere öndeyken dinlenir. Arka planda gelen tuş olayları işlenmeden atılır.
- Hangi tuşa basıldığı hiçbir yerde saklanmaz. Yalnızca olaylar arasındaki süre tutulur. Fareden de yalnızca rapor sayısı alınır.
- Yazılımla üretilen (
SendInput) sahte girişler ölçüme katılmaz. - DLL'ler yalnızca
System32klasöründen yüklenir (DLL hijacking koruması). Exe; CFG, CET, ASLR, DEP ve/sdlsertleştirmeleriyle derlenir.
Gereksinim: Visual Studio 2022 Build Tools, "C++ ile masaüstü geliştirme" iş yüküyle birlikte.
build.batHer çalıştırmada output\ klasörüne tarih ve saat damgalı yeni bir exe üretilir, örneğin PollingRateTest_20261127_174226.exe. Pencerenin beklememesi için build.bat /nopause kullanabilirsiniz.
- Mouse test: Measures 125 / 250 / 500 / 1000 / 2000 / 4000 / 8000 Hz modes in real time. Shows current, average and peak rate, stability, report interval (µs) and a 15-second graph.
- Keyboard test: Measures the time between key events, draws an interval histogram and estimates the keyboard's polling rate.
- Automatic device detection: Reads brand, model, VID/PID and connection type (USB, Bluetooth, PS/2) from the device itself. With several mice or keyboards connected, it picks the one in use. Click a row in the list to lock onto a specific device.
- Single file: No installer, extra DLLs, or .NET / VC++ runtime needed. Runs on 64-bit Windows 7, 8, 10 and 11.
- Minimal UI: Off-white text and graphs on a black background.
- Download
PollingRateTest.exefrom Releases and run it. - FARE (Mouse) tab: Move the mouse in fast, continuous circles on your desk for 2–3 seconds.
- KLAVYE (Keyboard) tab: Press your palm flat onto the letter keys and lift it; repeat 10–20 times.
- Shortcuts (mouse tab):
Spacepause,Rreset,Escreturn to automatic device selection.
SmartScreen warning: The app is not code-signed, so Windows may show "Windows protected your PC" on first launch. Click More info → Run anyway. The full source code is in this repository.
Mouse: While moving, a mouse sends one HID report per polling cycle. The app receives these reports via Windows Raw Input on a dedicated high-priority thread. It divides the number of reports in each 100 ms window by the real elapsed time measured with QueryPerformanceCounter. A mouse cannot report faster than its configured rate, so the mode is the smallest standard rate that the measured 90th percentile fits under.
Keyboard: A keyboard only sends a report when a key changes state; there is no continuous stream. However, two separate reports can never be closer together than one polling interval: 1 ms at 1000 Hz, 0.125 ms at 8000 Hz. Pressing many keys at once with your palm creates many short intervals. In the histogram they cluster at multiples of the polling interval, and the leftmost cluster gives the report interval. The keyboard result is therefore an estimate. With few samples it is shown as "at least X Hz" and becomes definite as more samples arrive.
- Keep the window in the foreground. Windows may throttle mouse input to background apps.
- Plug the mouse or receiver into a rear motherboard USB port; avoid hubs and front-panel ports.
- At 8000 Hz, slow movement reads lower. This is expected, because the mouse only reports when there is movement.
- Set the polling rate in the device's own software (Razer Synapse, Logitech G HUB, etc.).
- No network access. Writes no files, doesn't touch the registry, and needs no administrator rights.
- The keyboard is only read while the KEYBOARD tab is open and the window is in the foreground. Key events that arrive in the background are discarded unprocessed.
- Which key was pressed is never stored. Only the time between events is kept. From the mouse, only the report count is used.
- Synthetic input (
SendInput) is ignored. - DLLs are loaded only from
System32(DLL-hijacking protection). The exe is built with CFG, CET, ASLR, DEP and/sdlhardening.
Requirement: Visual Studio 2022 Build Tools with the "Desktop development with C++" workload.
build.batEvery run creates a new date- and time-stamped exe in output\, for example PollingRateTest_20261127_174226.exe. Use build.bat /nopause to skip the final pause.
| Dosya / File | Açıklama | Description |
|---|---|---|
src/app.h |
Ortak tipler, sabitler, paylaşılan durum ve fonksiyon bildirimleri | Shared types, constants, state and function declarations |
src/main.c |
Giriş noktası, pencere, mesaj döngüsü, simge | Entry point, window, message loop, icon |
src/input.c |
Raw Input yakalama iş parçacığı (fare + klavye) | Raw Input capture thread (mouse + keyboard) |
src/devinfo.c |
Marka/model tespiti (HID dizgileri, VID tablosu, CfgMgr32) | Brand/model detection (HID strings, VID table, CfgMgr32) |
src/stats.c |
Fare hız istatistikleri ve klavye aralık tahmini | Mouse rate statistics and keyboard interval estimation |
src/ui.c |
GDI ile tüm çizim: istatistikler, grafik, histogram, tablo | All GDI rendering: stats, graph, histogram, table |
src/security.c |
Güvenli DLL yükleme | Secure DLL loading |
src/app.rc |
Exe ikonu ve sürüm bilgisi | Exe icon and version information |
src/app.ico |
Uygulama ikonu | App icon |
docs/llms.txt |
Yapay zeka araçları için proje özeti | Project summary for AI tools (llms.txt) |
tools/make-icon.ps1 |
app.ico dosyasını yeniden üretir |
Regenerates app.ico |
build.bat |
MSVC derleme betiği | MSVC build script |
🇹🇷 Ticari olmayan amaçlarla herkes ücretsiz kullanabilir. Kaynak kodu ise referans vermek koşuluyla ticari kullanım dahil her amaçla ücretsiz kullanılabilir, değiştirilebilir ve dağıtılabilir. Referans verildikten sonra başka bir koşul yoktur. Ayrıntılar için LICENSE dosyasına bakın.
🇬🇧 Free for anyone to use for non-commercial purposes. The source code may be used, modified and distributed for any purpose, including commercial use, free of charge as long as attribution is given. Once credited, there are no further conditions. See LICENSE for details.
Örnek referans / Example credit:
Based on Polling Rate Test by rusenorcun
https://github.com/rusenorcun/PollingRateTest

