I've noticed that when I'm developing OpenGL applications (Win32) that the performance drops somewhat if the window is not in focus.
I guess that's not entirely unreasonable, but I'm curious to understand it a little more.. and if there is anything I can realistically do about it.
To illustrate, I'll get a clear 60fps when the window has focus, but it drops to a much less stable 48-55fps when it loses focus (even if only a fraction of the window is visible, but that's not the issue here).
I've tried playing with SetProcessPriorityBoost(), SetProcessPriority() and SetThreadPriority() to marginal effect, nothing compelling.
Setting the window style to include WS_EX_TOPMOST doesn't change things at all.
I think this is still down to scheduling/priority somewhere but I wonder if there is anything else I could be looking at here?
It's not a big deal I suppose, but it is annoying me :)