mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 05:53:40 +00:00
[client] make startup sleep nicer on the CPU
This commit is contained in:
parent
0753e63644
commit
8fbacba82e
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user