Repository navigation
UniPad v1.5.1
Lower CPU usage · Zero allocations · Identical behavior
⚡ Performance release — no new features, no UI changes
This release is entirely about lowering CPU usage. Behavior is verified identical to v1.5.0.
🔧 CPU / performance
- Input loop now waits on a high-resolution Windows timer with absolute-deadline scheduling instead of busy-polling — the CPU is no longer spun while waiting for the next poll.
- Device lookup: removed string building and per-cycle device-list snapshots.
- Phone topology: the phone-client topology snapshot is now reused across poll cycles instead of being rebuilt every cycle (unchanged latch/stale/reconnect behavior).
- Rumble output: the rumble strength lookup delegate is cached, so the output cycle no longer allocates per pass.
📊 Measured results
Benchmarked with the new repeatable suite (tests/UniPad.Performance, raw data in build/performance/results.json):
| Scenario | Result |
|---|---|
| Binding lookup, 27 bound targets | ~50% less CPU time, zero allocations |
| Output cycle, 8 virtual pads | ~50% less CPU time, zero allocations |
| Phone poll, 8 clients | ~70% less CPU time, zero allocations |
✅ Verification
- 54/54 regression checks pass, including real SDL with virtual joysticks and real loopback WebSockets
- A deterministic 100,000-frame replay produces an identical checksum before and after the change — no behavior change
- Full technical report (Persian) in
build/performance/REVIEW_FA.txt
📥 Download
UniPad.exe — single portable file. No installer, no .NET runtime required.
SHA-256: DEB6C07F216F8893F66645552FA934C46392D77A483871FBF8EB1C906598D5A1
Verify it with:
Get-FileHash .\UniPad.exe -Algorithm SHA256⬆️ How to update
UniPad will offer the update automatically through its in-app updater, or
Download UniPad.exe below (portable single file, no installer) and replace your current copy.
Tip
Keep UniPad somewhere writable such as C:\Tools\UniPad, not inside Program Files.
🐛 Feedback
If CPU usage still looks too high for you, please open an issue with your CPU model, connected devices, and what the app was doing at the time.
Full changelog: v1.5.0...v1.5.1