[client] switch to polling mode to fix stutting issues

This commit is contained in:
Geoffrey McRae 2017-12-14 02:24:18 +11:00
parent e379f70784
commit 7986350cb8

View File

@ -166,11 +166,7 @@ int renderThread(void * unused)
// we must take a copy of the header, both to let the guest advance and to // we must take a copy of the header, both to let the guest advance and to
// prevent the contained arguments being abused to overflow buffers // prevent the contained arguments being abused to overflow buffers
memcpy(&header, state.shm, sizeof(struct KVMFRHeader)); memcpy(&header, state.shm, sizeof(struct KVMFRHeader));
if (!ivshmem_kick_irq(header.guestID, 0)) __sync_or_and_fetch(&state.shm->flags, KVMFR_HEADER_FLAG_READY);
{
usleep(1000);
continue;
}
// check the header's magic and version are valid // check the header's magic and version are valid
if ( if (