[client] kick the guest early to get the first frame faster

This commit is contained in:
Geoffrey McRae 2017-11-19 20:19:40 +11:00
parent a413362e53
commit 74403cce8c

View File

@ -126,6 +126,10 @@ int renderThread(void * unused)
format.height = 0; format.height = 0;
format.stride = 0; format.stride = 0;
// kick the guest early for our intial frame
// the guestID may be invalid, it doesn't matter
ivshmem_kick_irq(state.shm->guestID, 0);
while(state.running) while(state.running)
{ {
// ensure the header magic is valid, this will help prevent crash out when the memory hasn't yet been initialized // ensure the header magic is valid, this will help prevent crash out when the memory hasn't yet been initialized