PoE2 Steam client CPU Affinity and Priority Tool

PoE2-Affinity

GitHub: https://github.com/ciphernemo/PoE2-Affinity
Download: https://github.com/ciphernemo/PoE2-Affinity/releases/download/1.0/poe2_affinity.exe

Feel free to check out the source code and even compile it yourself if you like. For the sake of convenience, you can download the compiled executable and run it. The program will walk you through every step.

I made this 500-some line PowerShell script to help less technical PoE2 players perform what was mentioned here. Setting CPU affinity for the PoE2 process has reportedly helped some players resolve issues on their system.

From the GitHub page's readme:

Sets CPU affinity and priority for the Steam-based PoE2 process. This is done by automtically changing the Launch Options for PoE2 in Steam.

Script's Process

1. Searches system for Steam and PoE2 via registry keys, the default install location, then recursive drive search. If multiple locations are found, prompt user for preferred location.
2. Determines available threads on system, ask how many threads to withhold from PoE2, then calculate affinity mask.
3. Find the Steam localconfig.vdf and libraryfolders.vdf files.
4. Create a single-line batch file in PoE2's folder that launches PoE2 with CPU affinity settings.
5. Read the localconfig.vdf in a PSObject and add launch options for PoE2.
6. Create a backup of Steam's localconfig.vdf file.
7. Saves changes to localconfig.vdf

Notes
* Creates a log file in the same location and of the same name as this script.
* Requires Powershell 3+ (Windows 11, 10, 8, and Server 2025, 2022, 2019, 2016, 2012)
* Use System.IO.File.WriteAllLines instead of Out-File to ensure UTF-8 encoding. Steam will reject UTF-16 encoded files.
* Feel free to take and re-work this script, according to its license, for use with other Steam games.
* Inspiration and reworked code from Steam-GetOnTop by ChiefIntegrator: https://github.com/ChiefIntegrator/Steam-GetOnTop
* Compiled with PS2EXE-GUI [Invoke-PS2EXE] v0.5.0.30 by Ingo Karstein & Markus Scholtes: https://github.com/MScholtes/PS2EXE

Instructions
Download from the current release (https://github.com/ciphernemo/PoE2-Affinity/releases/download/1.0/poe2_affinity.exe), then run the executable.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░░ cipher_nemo ░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Last bumped on Dec 29, 2024, 6:36:10 PM

Report Forum Post

Report Account:

Report Type

Additional Info