0 of 0

File information

Last updated

Original upload

Created by

me

Uploaded by

somebody4

Virus scan

Safe to use

Tags for this mod

About this mod

Set cpu affinity & priority via AHK script

Permissions and credits
My skyrim se start with 2 core affinity (4 core cpu) and background priority by default ,
resulting in heavy lag and stuttering.
I don't know why and not sure if others encounter this, but I would like to share anyway.

(you can check in taskmanager if you are not sure, see [Images])

1) download and install AHK, mark the install path:
https://www.autohotkey.com/download/

2) find your newly installed program, right click AutoHotkey.exe -> Properties -> Compatibility -> Run this program as an administrator

3.1)create a file named like skyrimSE.ahk and copy & paste the following into the file:

#ifwinactive ahk_class Skyrim Special Edition ahk_exe SkyrimSE.exe
CapsLock::
  WinGet,pid_,PID,A
  Process, Priority,%pid_%,H
  Affinity_Set(15,pid_)
  return


3.2)copy&paste the first 10~11 lines (from start to first blank line) of the code into the file, save& close:

https://github.com/dufferzafar/Autohotkey-Scripts/blob/master/lib/Affinity.ahk#fromHistory

4) double click your skyrimSE.ahk to open
5) run see, after it is loaded press Capslock once, done.
Top