събота, 29 февруари 2020 г.

Sudden loss of FPS

To my greatest surprise when I tried playing games this week, I would play about 10mins and then the game would suddenly experience a total FPS drop at which point it has to be killed. I thought it's a problem with the latest KSP update, but then it happened with another game and I was like "What?".
Well, it seems like some genius decided that there should be a 10 mins limit of work for the discrete card (i.e. the Nvidia). Because...why not. Let's stop people from gaming and give them back their life. Oh well.
Anyway, luckily once I realised the problem is on my computer, it was very easy to find a solution using Google. So according to this forum, or Arch Linux's wiki, it's to add in the section Screen (or in my case Devices) of /etc/bumblebee/xorg.conf.nvidia
 
Option "HardDPMS" "false"
  
For now, $optirun glxspheres works for more than 10 mins without an FPS drop, so YAY! 
 
(the other solution, to type in terminal:
$xset s off -dpms
doesn't work, at least, it didn't for me.)