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