How do you deal with other processes being greedy and taking more CPU time?

Started by Matty, January 23, 2024, 03:31:44

Previous topic - Next topic

Matty

This is something I think you can't avoid with the PC environment....

Sometimes other processes that are running on your PC (antivirus is a good one, defrag another) - can suddenly decide to 'borrow' more CPU time than they're supposed to while your game is running.

Of course this affects the framerate of your game. Code that is efficient and does its job normally suddenly starts to stutter when one of these processes launches and starts eating up the CPU time.

So what do you about it?

Derron

Set process affinity?

These "tools" (AV software) often detects gaming activity and reschedules their stuff / uses less cpu. Some do not auto-run these settings but simply have "gaming modes".


Yet I only experienced these things by Windows itself ("updates kicking in") or Monitoring software (company IT ...so behaviour analysis for threat detection etc -- but there you aren't gaming so often :P).


bye
Ron

Matty

Yeah - I find that around the same time of day each day (3pm) the system decides to suddenly use a heap of the CPU intermittently when I'm trying to do things.  Makes development a pain as it's impossible to tell if features I'm adding are causing slowdown somehow, or if it's just the system doing its thing that time of day.

dawlane

I should point out that if you are using one of the latest AMD RYZEN CPU's, that there is a known issue with fTPM that can cause stuttering.
Note that this issue is not just a MS Windows specific problem.