Skip to content

About

A small tool to automate setting multiple process priorities.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Process Priority Manager Banner

⚡ Crypto90's Process Priority Manager

High-Performance Windows Process Priority Optimizer & Automated Background Enforcer

GitHub Release Platform License Python Build Status Ko-Fi

Download Executable • Key Features • UI Preview • CLI Usage • How It Works • Build Guide


💡 Overview

By default, the Windows scheduler treats demanding 3D games, streaming tools (OBS Studio), digital audio workstations (DAWs), and background browser tabs with identical Normal CPU priority. Whenever background tasks spike, your foreground game or render workload experiences frame drops, audio stutter, and latency spikes.

Crypto90's Process Priority Manager solves this problem permanently. Define custom priority rules (High, Above Normal, etc.) for your critical games and applications once. The built-in Real-Time Auto-Enforce Watcher detects when target processes launch—whether from Steam, Epic, or manual boot—and instantly elevates their Win32 Priority Class in the background.


🚀 Download Pre-built Executable

End-users do not need Python installed. Standalone Windows executables are compiled automatically via GitHub Actions:

Version Asset Direct Download Platform
v0.2.0 (Latest) Crypto90s_ProcessPriorityManager.exe ⬇️ Download v0.2.0 Executable Windows 10 / 11 (64-bit)

📁 Browse all versions and changelogs in GitHub Releases.


✨ Key Features

🔄 Real-Time Auto-Enforce Watcher

A non-blocking background daemon thread continuously monitors system processes and instantly applies target priorities to newly launched games and apps without manual intervention.

🎯 Direct Win32 Kernel Scheduling

Leverages native Win32 OpenProcess and SetPriorityClass kernel APIs for instantaneous, zero-overhead process priority management.

🛡️ One-Click Admin Elevation

Built-in UAC detection immediately flags protected system processes and provides a one-click Restart as Administrator button (runas).

🎨 Windows 11 Fluent Dark Slate Theme

A modern, high-contrast dark palette (#121418 / #1a1d24) with emerald status badges, glowing sort indicators, and zero UI stutter.

🔍 Multi-Criteria Live Search & Filtering

Instantly search by Process Name, PID, or Priority. Quick filter toggles let you isolate configured rules (★) or elevated processes with a single click.

🚀 Silent / Headless CLI Daemon

Run headless in the background via --silent --watch or apply priorities once and exit with --apply—ideal for Windows Task Scheduler.

💾 Safe JSON & AppData Storage

Stores configurations safely with portable mode fallback to %LOCALAPPDATA%\Crypto90s_ProcessPriorityManager. Backward-compatible with legacy config formats.

🔄 Windows Startup Integration

Easily toggle automated launch on Windows startup directly from the GUI or CLI via HKCU\Software\Microsoft\Windows\CurrentVersion\Run.

📸 Screenshot

Process Priority Manager Application Interface

⌨️ Command Line Options

Process Priority Manager features a rich CLI interface for terminal power users, Task Scheduler jobs, and batch scripts:

# Apply all configured rules immediately to running processes and exit
python Crypto90s_Process_Priority_Manager.py --apply

# Run headless daemon continuously in the background without opening GUI
python Crypto90s_Process_Priority_Manager.py --silent --watch

# List all saved priority rules
python Crypto90s_Process_Priority_Manager.py --list

# Add or update a priority rule from terminal
python Crypto90s_Process_Priority_Manager.py --set Cyberpunk2077.exe High

# Remove a configured priority rule
python Crypto90s_Process_Priority_Manager.py --remove Cyberpunk2077.exe

# Display version
python Crypto90s_Process_Priority_Manager.py --version

# View all CLI options
python Crypto90s_Process_Priority_Manager.py --help

CLI Parameter Reference

Flag Argument Description
--apply None Applies all saved rules to current processes immediately and exits.
--silent, --headless None Runs without opening the graphical user interface.
--watch, --daemon None Runs continuously in the background, auto-prioritizing newly launched processes.
--list None Prints all currently configured rules to the terminal.
--set PROCESS PRIORITY Adds or updates a rule (e.g. --set obs64.exe Above Normal).
--remove PROCESS Removes a process from the auto-priority list.
--version None Displays current software version.
-h, --help None Prints full usage instructions.

🔄 How It Works

flowchart TD
    A["Launch Process Priority Manager"] --> B{"CLI Flags Provided?"}
    B -->|--silent / --apply| C["Execute Headless Engine"]
    B -->|Standard| D["Initialize Modern Dark Slate GUI"]
    
    D --> E["Load Config (JSON / Legacy Migration)"]
    E --> F["Enumerate System Processes (psutil + Win32)"]
    F --> G["Render Interactive Treeview & Status Badges"]
    
    D --> H["Start Background Watcher Thread"]
    C --> H
    
    H --> I["Sleep Interval (3.0s)"]
    I --> J["Poll Active Processes"]
    J --> K{"Process Matches Saved Rule?"}
    K -->|No| I
    K -->|Yes| L{"Current Priority == Target Priority?"}
    L -->|Matches| I
    L -->|Differs| M["Win32 OpenProcess & SetPriorityClass"]
    M --> N["Log Timestamped Success in Console"]
    N --> O["Update Live UI Row"]
    O --> I
Loading

🛠️ Building from Source

Prerequisites

  • Python 3.8+ (Windows 10 or 11 recommended)
  • Git

1. Clone Repository & Install Dependencies

git clone https://github.com/Crypto90/ProcessPriorityManager.git
cd ProcessPriorityManager

pip install -r requirements.txt

2. Run Locally

python Crypto90s_Process_Priority_Manager.py

3. Build Standalone Executable

You can compile a standalone .exe using PyInstaller:

Option A (One-Click Windows Script): Double-click build_exe.bat in the repository root.

Option B (Manual Terminal Command):

pyinstaller --onefile --noconsole --name "Crypto90s_ProcessPriorityManager" Crypto90s_Process_Priority_Manager.py

The compiled binary will be placed into the dist/ directory:

dist/Crypto90s_ProcessPriorityManager.exe

📁 Configuration File

Configurations are stored in structured, human-readable JSON:

  • Portable location: Next to the executable/script if writable (process_priority_config.json).
  • Protected directory fallback: %LOCALAPPDATA%\Crypto90s_ProcessPriorityManager\process_priority_config.json.

Sample Configuration (process_priority_config.json):

{
  "version": "v0.2.0",
  "priorities": {
    "Cyberpunk2077.exe": "High",
    "obs64.exe": "Above Normal",
    "Discord.exe": "Below Normal"
  },
  "settings": {
    "auto_enforce": true,
    "enforce_interval_sec": 3.0,
    "run_at_startup": false
  }
}

🤝 Contributing

Contributions, bug reports, and suggestions are warmly welcomed!

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/amazing-feature).
  3. Commit your changes (git commit -m 'Add amazing feature').
  4. Push to the branch (git push origin feature/amazing-feature).
  5. Open a Pull Request.

☕ Support the Developer

If Crypto90's Process Priority Manager helps keep your system responsive and your games running smoothly, please consider buying me a coffee:

Buy Me a Coffee


📄 License

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

About

A small tool to automate setting multiple process priorities.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages