From eba2d52ba026fa2e69f904cd27e223bdcc4b3de2 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Fri, 19 Aug 2022 17:49:08 +0100 Subject: [PATCH] Optimise GPU acceleration for Windows guests --- quickemu | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/quickemu b/quickemu index 3092ebb..7a259be 100755 --- a/quickemu +++ b/quickemu @@ -715,7 +715,12 @@ function vm_boot() { # is used. Which is whay '-vga none' is added to the QEMU command line. DISPLAY_DEVICE="qxl-vga" elif [ "${guest_os}" == "windows" ]; then - DISPLAY_DEVICE="qxl-vga" + case ${OUTPUT} in + # virtio-gpu "works" with gtk but is limited to 1024x1024 and exhibits other issues. + # https://kevinlocke.name/bits/2021/12/10/windows-11-guest-virtio-libvirt/#video + gtk|none|spice) DISPLAY_DEVICE="qxl-vga";; + sdl|spice-app) DISPLAY_DEVICE="virtio-vga";; + esac else DISPLAY_DEVICE="qxl-vga" fi