Repository navigation
Predator Control v1.3.1 β Zero-Allocation Telemetry, C++ Architecture & Cause-Effect Mappings
Predator Control v1.3.1 β Zero-Allocation Telemetry, C++ Architecture & Hardware Cause-and-Effect Mappings
A performance, optimization, and code readability release designed to eliminate Garbage Collection overhead during high-refresh gaming while providing a complete, crystal-clear mental model for C++ systems programmers.
β‘ 1. Zero-Allocation Telemetry Loop (0B Heap Allocations)
- Stack-Allocated Telemetry Record Struct: Converted
TelemetrySnapshotfrom a heap-allocated classrecordinto a stack-allocatedreadonly record struct. - Cached Numeric String Tables: Pre-allocated immutable string lookup tables for CPU/GPU temperatures (0Β°C to 129Β°C) and RPM values, eliminating thousands of temporary string allocations every minute.
- Debounced Sensor Dispatcher: Added state-comparison debouncing in
Form1.OnTelemetryReceivedso unchanged sensor values avoid re-allocating formatting buffers or triggering redundant GDI invalidate/redraw cycles. - Micro-Stutter Free Gaming: Reduces GC Gen 0 pressure to 0 bytes per tick during background 1Hz monitoring, preventing frametime spikes in competitive games.
π 2. C++ Systems Developer "Rosetta Stone" Headers
Comprehensive C++ concept mappings and type translation headers added across all core hardware, driver, and OS subsystem files:
WmiController.cs: Maps to a C++ ACPI Embedded Controller Driver (\\.\root\wmi/WbemServices).AcerAgentClient.cs: Maps to a native Winsock2 TCP client (127.0.0.1:46933) and Named Pipe IPC.Form1.cs: Maps to a Win32 Message Pump (HWND,WndProc,WM_HOTKEY,WM_DPICHANGED).EtwFpsMonitor.cs: Maps to an Event Tracing for Windows (ETW) kernel session viaadvapi32.dll.NvmlGpuMonitor.cs: Maps to direct dynamic loading ofnvml.dllviaLoadLibraryExW.BatteryHealthMonitor.cs: Maps to native Win32IOCTL_BATTERY_QUERY_INFORMATIONand ACPI WMI probes.DisplayCcdController.cs: Maps to the Windows Connecting & Configuring Displays (CCD) API.OemServiceManager.cs: Maps to the Windows Service Control Manager (advapi32.dll/winsvc.h).PredatorKeyHook.cs: Maps to a native Win32 Low-Level Keyboard Hook (SetWindowsHookEx(WH_KEYBOARD_LL)).
π 3. Explicit Hardware Cause-and-Effect Annotations
Every hardware action in WmiController.cs is now clearly annotated with a 3-part hardware flow block:
// [TRIGGER] : User clicks "80% Battery Limit" toggle in UI
// [HARDWARE I/O]: Calls WMI method SetGamingSysInfo(0x0B, 1) or writes to QA settings.json
// [EFFECT] : Embedded Controller firmware caps battery charge circuit at 80%Covers Power Profiles, Fan Control (Auto/Max/Custom PWM), Boot Sound & Animation, Power-off USB Charging, Display Overdrive, and GPU MUX modes.
ποΈ 4. Visual Architectural Grouping & Code Cleanliness
WmiController.csorganized into 7 distinct hardware regions:HARDWARE DETECTION & BITMASK CAPABILITIESPOWER MODES & PROFILES (EC DIRECT)FAN CONTROL & TACHOMETERSBATTERY CARE & CHARGE LIMITERSRGB KEYBOARD & BACKLIGHT (ITE8291)LOW-LEVEL WMI DRIVER WRAPPERGPU WORKING MODE (MUX SWITCH)
- 0 compiler warnings, 0 compiler errors.
π¦ Checksums & Verification
8dd7ca877189ff5bb3d1a0debde8d9146aabf02ae7a89e110930771408be5a7d PredatorControl-standalone.exe
faed8897e057799e6bf5b77572c25fe47e7176fcfd0920a1f38fa2ff04cc8a11 PredatorControl-win-x64.exe