FPS issue - alt-tab boosts performance

I have a weird issue (on Linux, haven’t tested it on Windows yet) with FPS.
When I start my application I get about 40 FPS. But when I switch to another application (alt-tab) and back again I get performance boost up to 120 FPS.

Any ideas what have I done wrong?

I have a small hunch… Do you have an NVidia card? If so, can you check the CPU usage before and after it speeds up?

Graphics card: nVidia Corporation GF108 [Quadro NVS 4200M]

Before alt-tab I have like 100% core usage on one core, after switching off and back again all cores are under 40% (I have lots of stuff running so it is ok, I guess :)).

Recent nVidia drivers toggle multithreaded and singlethreaded implementations of their driver at will. The minimize/maximize action probably triggers the switch. It’s likely that theagentd can fill you in on the details.

Exactly. Open up the NVidia Control Panel and disable Multithreaded optimization. My hunch was right! =D

I’m on the fence about this fact really. It seems nVidia has made the jump to making something which should be as dumb as possible (a driver) into something which is trying to be clever which adds unpredictability. I don’t approve even if it provides a performance boost (40 - 120 is a bit absurd really), the means don’t always justify the end…

Nonono, you got me wrong! From my experience the driver multithreading reduces performance. For me the driver enabled the “optimization” at when I started my game and disabled it after a while when it realizes that it’s actually hurting performance. Therefore disabling it instead of setting it to Auto in the control panel gave me consistent good performance. You can of course also set it to always on to test which one it is.

It might also be good to not do too many draw calls each frame. =)

I see. The question is: what is the default setting? If its auto -> I stick to my opinion :wink:

I suspect the multithreading optimization boosts response for multiple contexts at the expense of performance of any single one. As for video drivers being “dumb”, I think we lost that fight ages ago. Now every OpenGL driver has to include a fully optimizing compiler, among other nonsense.

Gallium to the rescue … whether that happens within my lifetime remains to be seen.

o_O Okay, tell me your address and I’ll fly over to your house, open the NVidia control panel, check it for you and then fly back to Japan. You’ll pay for the tickets, right?

The Linux driver can’t be that much different from the Windows driver, right? >_>

Not everyone has an nVidia card dude :frowning:

Then you don’t have the problem since as far as I know, it’s something Nvidia came up with…

No? I do want my stuff to run properly on nVidia hardware even though I don’t currently own a board myself :wink: Hence my interest.

Not much to do except tell people to disable it manually. My computer’s dead now, so I can’t tell you how right now. Sorry for being so mean there…

No worries. If this has any kind of serious impact, it will be seen in critical games like Skyrim and the like as well so if nVidia handles it badly it will likely be reverted to a more sane default setup.

Unfortunately, it’s been like this for almost a year, IIRC.

Yeah. It becomes even worse with heavily threaded programs…

Unbelievable :s

I retract my previous statement also. I’ve been scouting around some forums and I see plenty of evidence that people are willing to dive into the settings to make manual changes and accept that as a reasonable fix to a problem. I should have reasoned that any gamer that still plays on the PC today is likely to be a bit more tech-savvy. Better to keep these kind of occurrences in the back of the head so it can be offered as advice I guess :confused:

I need at least 8x MSAA + alpha to coverage if I’m to play on my 24’ screen or the shimmering is way too annoying. Preferably also some supersampling for specular antialiasing. On my laptop I can hardly notice aliasing with 2x MSAA only. Higher pixel density, ridiculous ghosting and view angle dependant gamma makes more AA unnecessary. Still, once you start using that control panel you won’t be able to live without it.

I prefer to avoid games that try to be photorealistic and go for more stylised experiences that lead to more stimulation of my imagination :slight_smile:

That said, I am rather enjoying BF3. Shame I’m so rubbish at it.

Cas :slight_smile: