[Gameplay] Occasional Stutter (XNA and Processor Affinity)

ZephyrG

Green Slime
There is an issue for me with occasional stuttering/freezing in this game and other games that seems to be based inside xna/monogame.

I have a 6 core cpu (hyperthreaded to 12), and turning off access to cores 5-11 while keeping 0-4 fixes this 100%. I didn't figure this out on my own, merely found this fix elsewhere.

I don't know the underlying cause of the stutter, just that limiting the processor affinity solves it for SoG and other xna based games.

How to do this manually :: task manager=>details=>secretsofgrindea=>[RMB]=>affinity=>uncheck[5-11]

I have also made this 'hack' automatic via code for a personal copy of another game, so I don't have to manually do it as often.

My 'hack' via code :: Process.GetCurrentProcess().ProcessorAffinity = (IntPtr) 0x0001F;

Just thought I'd report it.
 

Teddy

Developer
Staff member
Big thanks for telling us! These kinds of things are insanely hard to problem solve remotely :D
 
Top