while(IrrDevice->run() && IrrDriver)
{
if (IrrDevice->isWindowActive())
{
// render and all that stuff
}
else
{
Sleep(100); // give up cpu time if not active
}
}
If you're writing cross platform code, unix variants have usleep which is similar.
great vitek!!
I've created a simple class that takes the application paused.
I've had an idea to fork the main and controlling the main loop of the child through a system message handler in order to stop o replay
"We work in the dark, we do what we can, we give what we have, Our doubt is our passion and our passion is our task. The rest: is art of Madness" (H.James)