From 74403cce8c80be195fc78972c6c865646c6d3f12 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sun, 19 Nov 2017 20:19:40 +1100 Subject: [PATCH] [client] kick the guest early to get the first frame faster --- client/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/main.c b/client/main.c index d3134a92..e670948b 100644 --- a/client/main.c +++ b/client/main.c @@ -126,6 +126,10 @@ int renderThread(void * unused) format.height = 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) { // ensure the header magic is valid, this will help prevent crash out when the memory hasn't yet been initialized