[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,11 +165,14 @@ void mainThread()
{ {
while(state.running) while(state.running)
{ {
nsleep(1000);
if (state.started) if (state.started)
{
if (!state.lgr->render(state.lgrData, state.window)) if (!state.lgr->render(state.lgrData, state.window))
break; break;
} }
else
usleep(1000);
}
} }
int cursorThread(void * unused) int cursorThread(void * unused)