[client] make startup sleep nicer on the CPU

This commit is contained in:
Geoffrey McRae 2017-12-21 01:15:16 +11:00
parent 0753e63644
commit 8fbacba82e

View File

@ -165,10 +165,13 @@ void mainThread()
{
while(state.running)
{
nsleep(1000);
if (state.started)
{
if (!state.lgr->render(state.lgrData, state.window))
break;
}
else
usleep(1000);
}
}