I am experimenting with Client/Server with Multisync at the moment and I noticed that when either the client or the server program's window was obscured, the CPU shot up to 100%.
To reproduce the problem, just use the DarkGDK template:
// Dark GDK - The Game Creators - www.thegamecreators.com
// the wizard has created a very simple project that uses Dark GDK
// it contains the basic code for a GDK application
// whenever using Dark GDK you must ensure you include the header file
#include "DarkGDK.h"
// the main entry point for the application is this function
void DarkGDK ( void )
{
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbSyncRate ( 60 );
// our main loop
while ( LoopGDK ( ) )
{
// update the screen
dbSync ( );
}
// return back to windows
return;
}
Then run it and put another window over the top of it - like windows explorer or anything for that matter.
On my machine the CPU shoots straight to 100% until you remove the overlapping window.
I've experimented and as long as one pixel of the DarkGDK window is uncovered all is well. But the second there is no part of the DarkGDK window showing the CPU goes mad...