[client] make startup sleep nicer on the CPU
This commit is contained in:
1 parent
0753e63644
commit
8fbacba82e
1 file changed
+4
-1
+4
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user