Page 1 of 1

Inactive Game Window

PostPosted: Mon Dec 02, 2013 9:42 pm
by SM Sith Lord
Older versions of the Source engine, such as the 2007 SDK Base, will go into a sort of hibernation mode when the game window is not active for a while. It takes a minute to switch back to the game, but while in hibernation mode it frees up system resources for other stuff.

The new version of the engine (2013 SDK Base) never goes into hibernation mode. I need to get it to do that again. Does anybody have some advice on where I might start looking in the code?

By the way, I am working with the Multiplayer branches of each of the engines.

Re: Inactive Game Window

PostPosted: Mon Dec 02, 2013 9:48 pm
by zombie@computer
Seriously doubt thats in the 'open' part of the code.

Re: Inactive Game Window

PostPosted: Tue Dec 03, 2013 9:11 pm
by SM Sith Lord
So far I've found materials->ReleaseResources() and materials->ReacquireResources(), which do seem to release a good amount of CPU usage when the window is not active.

Re: Inactive Game Window

PostPosted: Wed Dec 04, 2013 11:46 am
by SM Sith Lord
Tested it yesterday and it also allowed my RAM usage to drop to 1/20th what it normally is. :)