Jump to content

Payday 2 CPU Affinity Issue

Hi everyone, I got a question I was wondering you might be able to help me solve.

So, I (like many others) still play Payday 2 and lets just say the Diesel Game Engine has not aged well - it was never great to begin with but that's another rant for a different story.  
While I have the system to obtain high FPS (a 144 fps at nearly all maxed settings) I notice a lot of game hitching in certain heists. I know how to fix this by doing the following:

  1. Launch the Game
  2. Alt + Tab and bring up the Task Manager
  3. Find the Payday 2 Process
  4. Manually set the CPU Affinity to use cores 0-5 on my Ryzen 5 3600. 

Once those steps are done - the issue disappears. Here's my question:

Is there a way to do this automatically with the launch of the game through Steam, or for it to be automatically done on the game's launch? 

 

I did find this SuperUser thread (https://superuser.com/questions/908848/how-do-i-permanently-set-the-affinity-of-a-process) that describes something similar, however Payday is weird and occasionally will not launch via a shortcut that has been modified (it sometimes insists that it is launched through Steam :/)

 

It's not that much of a hassle to do, but having it done automatically would be nice.

 

Cheers for reading and I look forward to possible help with this issue.

Ryze of the Phoenix: 
CPU:      AMD Ryzen 5 3600 @ 4.15GHz
Ram:      64GB Corsair Vengeance LPX DDR4 @ 3200Mhz (Samsung B-Die & Nanya Technology)
GPU:      MSI RTX 3060 12GB Aero ITX
Storage: Crucial P3 1TB NVMe Gen 4 SSD, 1TB Crucial MX500, Spinning Rust (7TB Internal, 16TB External - All in-use),
PSU:      Cooler Master MWE Gold 750w V2 PSU (Thanks LTT PSU Tier List)
Cooler:   BeQuite! Prue Rock 2 Black Edition
Case:     ThermalTake Versa J22 TG

Passmark 10 Score: 6096.4         CPU-z Score: 4189 MT         Unigine Valley (DX11 @1080p Ultra): 5145         CryEngine Neon Noir (1080p Ultra): 9579

Audio Setup:                  Scarlett 2i2, AudioTechnica AT2020 XLR, Mackie CR3 Monitors, Sennheiser HD559 headphones, HyperX Cloud II Headset, KZ ES4 IEM (Cyan)

Laptop:                            MacBook Pro 2017 (Intel i5 7360U, 8GB DDR3, 128GB SSD, 2x Thunderbolt 3 Ports - No Touch Bar) Catalina & Boot Camp Win10 Pro

Primary Phone:               Xiaomi Mi 11T Pro 5G 256GB (Snapdragon 888)

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×