Sleep( 0x80 ) more. - 25/05/15 03:07 AM
Hey, I missed something. Like the general suggestions forum. Could we move this thread there please (unless there's a D:OS suggestions forum)?
10% CPU on a i5-3570 (@3.0ghz, "turbo" disabled) tabbed out.
Though I very well could be missing something here.
Code
while( bInRenderLoop ) { ... if( GetForegroundWindow() != hMainWindow && bSinglePlayer ) { Sleep( 0x80 ); } else { SceneGraph->Draw(); SceneGraph->Tick( delta ); } ... }
10% CPU on a i5-3570 (@3.0ghz, "turbo" disabled) tabbed out.
Though I very well could be missing something here.