'Use less CPU when in background' isn't working

Hello all,

I’m running UE v4.8 (preview) on Debian 8 and I have noticed that the editor doesn’t use less CPU when in background, instead it consumes ~40% of CPU all the time.

It seems like the editor doesn’t get notified that it’s not in the focus anymore and continues to draw the UI elements. Unfortunately I was not able to prove it, because all the OpenGL debuggers (gDEBugger, vogl, GLSL-Debugger) were not building or running for some reason.

This is what I have:

$uname -a
Linux wrslnx196 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24) x86_64 GNU/Linux

“Use less CPU when in Background” is enabled.

Please tell me if additional info is required.

“Use less CPU when in Background” does nothing because FLinuxPlatformProcess::IsThisApplicationForeground() is stubbed at the moment.

Good news is that I have implemented the needed functionality and will be submitting a PR shortly. Not sure if this change will make it into epic/4.8, but will be in epic/master once accepted.

Hi amigo,

could you share the patch, please?

Sure, here’s the PR: https://github.com/EpicGames/UnrealEngine/pull/1207