Skip to content

Predator Control v1.3.1 β€” Zero-Allocation Telemetry, C++ Architecture & Cause-Effect Mappings

Choose a tag to compare

@YS47 YS47 released this 28 Sep 13:18
· 4 commits to master since this release

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 TelemetrySnapshot from a heap-allocated class record into a stack-allocated readonly 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.OnTelemetryReceived so 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 via advapi32.dll.
  • NvmlGpuMonitor.cs: Maps to direct dynamic loading of nvml.dll via LoadLibraryExW.
  • BatteryHealthMonitor.cs: Maps to native Win32 IOCTL_BATTERY_QUERY_INFORMATION and 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.cs organized into 7 distinct hardware regions:
    1. HARDWARE DETECTION & BITMASK CAPABILITIES
    2. POWER MODES & PROFILES (EC DIRECT)
    3. FAN CONTROL & TACHOMETERS
    4. BATTERY CARE & CHARGE LIMITERS
    5. RGB KEYBOARD & BACKLIGHT (ITE8291)
    6. LOW-LEVEL WMI DRIVER WRAPPER
    7. GPU WORKING MODE (MUX SWITCH)
  • 0 compiler warnings, 0 compiler errors.

πŸ“¦ Checksums & Verification

8dd7ca877189ff5bb3d1a0debde8d9146aabf02ae7a89e110930771408be5a7d  PredatorControl-standalone.exe
faed8897e057799e6bf5b77572c25fe47e7176fcfd0920a1f38fa2ff04cc8a11  PredatorControl-win-x64.exe