PrimeBuild-pc 7be4cef428 Enhance theming, UI behavior, perf & add CI
Multiple improvements across theming, UI flow, performance refresh logic, and CI:

- Add CI DevSecOps GH Action workflow: .NET restore/build (Debug/Release), dependency audit, and gitleaks secret scan.
- Theming: preload and apply theme at startup; add HasUserThemePreference to settings model; detect legacy theme flag when loading settings; ThemeService now reads system theme from registry (GetSystemUsesDarkTheme) and exposes system-use check.
- Richer theme resources: major updates to FluentDark.xaml and FluentLight.xaml (expanded color palette, control styles/templates, system brushes) to modernize visuals and controls.
- Startup/UI behavior: improved autostart/minimize-to-tray handling, consistent ShowInTaskbar/Visibility logic, OnSourceInitialized hook to reapply caption theme, and apply DWM immersive dark caption via DwmSetWindowAttribute.
- Robust UI error handling: throttle dispatcher exception dialog to avoid multiple dialogs using an interlocked flag and short time window.
- MainWindow refactor: introduce ShowWindowFromTray helper, unify show/activate flows, apply caption theming, and adjust several shortcut handlers to use the helper.
- Tab switching: add SemaphoreSlim guard and improved selection logic to debounce concurrent tab changes; prompt/save/discard unsaved settings when switching away from Settings; dispose semaphore on shutdown.
- PerformanceViewModel: debounce/gate top-process refreshes with SemaphoreSlim and a pending flag to avoid overlapping refreshes; update TopCpuProcesses on UI dispatcher and refresh selected process impact safely.
- Misc: small XAML cleanups (Settings tab header simplification), add COMPLIANCE_AUDIT.md to .gitignore, and various logging/error message tweaks.

These changes aim to reduce UI flicker on startup, respect user/system theme preferences, harden UI interactions, prevent concurrent refresh race conditions, and add CI/DevSecOps checks.
2026-04-11 17:41:13 +02:00
2025-12-21 04:19:52 +01:00
2025-12-21 04:19:52 +01:00
2025-12-21 04:19:52 +01:00
2025-12-21 04:19:52 +01:00
2026-04-10 04:18:57 +02:00
2025-12-21 04:19:52 +01:00

ThreadPilot ✈️ v1.0.0

Status Windows .NET WPF License Release Architecture

ThreadPilot is a Windows application for advanced process management, CPU affinity control, and power plan automation.
Built with WPF and .NET 8, it is focused on deterministic performance workflows for power users, gamers, and system admins who want precise control over system resources.

Thread-Pilotbanner.png

✨ Features & Highlights

  • Advanced Process Management: Real-time monitoring with CPU affinity and priority controls.
  • Enterprise-Grade Rules & Automation: Rule-based automation for process-triggered power plan behavior, featuring graceful failure handling for Anti-Cheat protected games (Vanguard, EAC, BattlEye).
  • Performance Intelligence Dashboard: Interactive dashboard with process hotspots, rule impact analysis, and timeline events.
  • Global vs. Per-Process Control: Explicit visual separation of global power plan management from per-process actions.
  • System Tweaks: Advanced Windows performance settings panel.
  • Dynamic Theming: Light/Dark theming with seamless runtime switching.
  • Profile-based Configuration: Persistent settings, customizable notification levels, and low-overhead minimized tray mode.
Screenshot 2025-12-21 044753

⚙️ Requirements

  • OS: Windows 10 / 11 (x64)
  • Privileges: Administrator privileges required for full WMI functionality and process control.
  • SDK: .NET 8.0 SDK (only required for building from source).

📦 Installation

  1. Download the latest ThreadPilot_v1.0.0 release from GitHub Releases
  2. Extract the archive
  3. Run ThreadPilot.exe as Administrator

Build from source

git clone [https://github.com/PrimeBuild-pc/ThreadPilot.git](https://github.com/PrimeBuild-pc/ThreadPilot.git)
cd ThreadPilot
dotnet build "ThreadPilot_1.sln" --configuration Release
dotnet run --project "ThreadPilot.csproj" --configuration Release

Useful startup arguments: --start-minimized, --autostart, --test


🧪 Test Mode

Console test mode runs via the app entrypoint and uses the integrated TestRunner.cs. (Note: dotnet test will only execute tests in dedicated test projects; this repository currently uses an integrated runtime test runner).

dotnet run --project "ThreadPilot.csproj" --configuration Release -- --test

Note: In environments where elevation is required to start the app process, test mode requires an elevated terminal.


🛠️ Architecture & Tech Stack

  • .NET 8.0 & WPF
  • MVVM pattern using CommunityToolkit.Mvvm
  • Dependency Injection (Services/ServiceConfiguration.cs)
  • Rules & Automation Engine (Services/ProcessPowerPlanAssociationService.cs & ViewModels/ProcessPowerPlanAssociationViewModel.cs)
  • Performance Dashboard (Views/PerformanceView.xaml & ViewModels/PerformanceViewModel.cs)

📄 License

This project is licensed under the GNU General Public License v3.0. See LICENSE for details.


📞 Support

Made for Windows power users☕

S
Description
✈️ Free, open-source Process Lasso alternative for Windows 11: CPU Sets, priorities and saved rules for Intel hybrid and AMD X3D CPUs. No limits, no nags.
Readme AGPL-3.0 182 MiB
Languages
C# 98.2%
PowerShell 1.3%
Inno Setup 0.3%
Batchfile 0.2%