mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[client] start rendering a little earlier
This commit is contained in:
parent
a647a602bf
commit
97749b335a
@ -888,12 +888,6 @@ int run()
|
|||||||
SDL_SetHintWithPriority(SDL_HINT_MOUSE_RELATIVE_MODE_WARP, "1", SDL_HINT_OVERRIDE);
|
SDL_SetHintWithPriority(SDL_HINT_MOUSE_RELATIVE_MODE_WARP, "1", SDL_HINT_OVERRIDE);
|
||||||
SDL_SetEventFilter(eventFilter, NULL);
|
SDL_SetEventFilter(eventFilter, NULL);
|
||||||
|
|
||||||
// flag the host that we are starting up this is important so that
|
|
||||||
// the host wakes up if it is waiting on an interrupt, the host will
|
|
||||||
// also send us the current mouse shape since we won't know it yet
|
|
||||||
DEBUG_INFO("Waiting for host to signal it's ready...");
|
|
||||||
__sync_or_and_fetch(&state.shm->flags, KVMFR_HEADER_FLAG_RESTART);
|
|
||||||
|
|
||||||
// start the renderThread so we don't just display junk
|
// start the renderThread so we don't just display junk
|
||||||
if (!(t_render = SDL_CreateThread(renderThread, "renderThread", NULL)))
|
if (!(t_render = SDL_CreateThread(renderThread, "renderThread", NULL)))
|
||||||
{
|
{
|
||||||
@ -901,6 +895,12 @@ int run()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// flag the host that we are starting up this is important so that
|
||||||
|
// the host wakes up if it is waiting on an interrupt, the host will
|
||||||
|
// also send us the current mouse shape since we won't know it yet
|
||||||
|
DEBUG_INFO("Waiting for host to signal it's ready...");
|
||||||
|
__sync_or_and_fetch(&state.shm->flags, KVMFR_HEADER_FLAG_RESTART);
|
||||||
|
|
||||||
while(state.running && (state.shm->flags & KVMFR_HEADER_FLAG_RESTART))
|
while(state.running && (state.shm->flags & KVMFR_HEADER_FLAG_RESTART))
|
||||||
{
|
{
|
||||||
SDL_Event event;
|
SDL_Event event;
|
||||||
|
Loading…
Reference in New Issue
Block a user