Skip to content

A tool enables Game running on Windows or Linux with exact CPU core numbers. 一个可以指定程序运行的CPU核心数量的跨平台工具

License

Notifications You must be signed in to change notification settings

hiddenblue/Avalonia.CpuLimiter

Repository files navigation

AVACL

📖 About

AVACL (Avalonia.CpuLimiter) is a CPU control tool for programs developed using the Avalonia framework, supporting Windows and Linux platforms, enabling control over CPU core scheduling for numerous applications.

Important
This tool requires administrator privileges on the corresponding platform to function properly; otherwise, it will not work normally.

🖼️ Interface

🎨 Main Interface

Main Interface

⚙️ Settings Interface

Settings Interface

🚀 Usage Methods

🪟 Windows Platform

Download the corresponding software package from Release, unzip it, and run avalonia.cpulimiter to open the main interface of the program.

Click the "Add File" button on the main interface to open the file explorer, select the game or application you want to run (usually in exe format), and click "OK."

Use the mouse wheel to click and drag the slider below to adjust the CPU core value.

Then click "Start Program," and the target program will be executed with the set CPU value.

Note
The CPU core value set here represents the number of "logical cores," not the conventional "physical cores." Logical cores = Physical cores x 2.

🐧 Linux Platform

Currently, there is no simple method to launch the GUI with sudo permissions on Linux. Please use the command line to start.

Download the corresponding Linux platform package from Release and install it via the package manager. In the command line, execute:

debian
sudo apt install ./avalonia.cpulimiter_0.1-alpha_amd64_native_AOT.deb

Then, you can execute it through the command line using the sudo command:

sudo -E /usr/bin/avalonia.cpulimiter.sh
Warning
Programs launched via AVACL on Linux will also have root privileges. Please use with caution.

🛠️ Development & Debugging 🐛

This project is developed using the cross-platform graphics framework Avalonia, compiled with Dotnet 8.0 SDK, and supports features like Native AOT that significantly improve startup speed.

Rider and Visual Studio are the primary development tools.

Log

The program’s logs are generated by default in the user’s home directory. For debugging purposes, please check the logs.

💻 Supported Platforms

Native AOT: Fastest start, smallest binary size
Ready to Run: Fast start, larger size
Self-Contained: Large size, no need for dotnet runtime

Table 1. Table title

Platform

Features

Suffix

Windows (exe)

Native AOT start

native_aot

Ready to Run

R2R

Self-Contained

no_dotnet

Linux (.deb .rpm)

Native AOT

native_aot

Ready to Run

R2R

Self-Contained

no_dotnet

macOS

unSupported

Note
macOS is not supported primarily because I do not have a testing device. Some features of AVACL may be supported.

⏱️ ToDo

  • ❏ Online automatic update feature, check and download updates

  • ❏ Automatically select items and refresh historical usage time when clicking

  • ❏ Optimize the logging system compatible with native AOT

  • ❏ Add application icon functionality

📘 Reference Projects

About

A tool enables Game running on Windows or Linux with exact CPU core numbers. 一个可以指定程序运行的CPU核心数量的跨平台工具

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages