mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Default to gl=on and clean up graphics status
Actually, `gl=on` and `virgil=on` are both required to enable full acceleration. `virgil=on` is not currently working with GTK, so set to off if GTK is used.
This commit is contained in:
parent
b9e6558bd6
commit
70b5d8148c
1 changed files with 13 additions and 5 deletions
16
quickemu
16
quickemu
|
@ -89,7 +89,7 @@ function vm_boot() {
|
||||||
local VMNAME=$(basename ${VM} .conf)
|
local VMNAME=$(basename ${VM} .conf)
|
||||||
local VMDIR=$(dirname ${disk_img})
|
local VMDIR=$(dirname ${disk_img})
|
||||||
local BIOS=""
|
local BIOS=""
|
||||||
local GL="off"
|
local GL="on"
|
||||||
local VIRGL="on"
|
local VIRGL="on"
|
||||||
local UI="sdl"
|
local UI="sdl"
|
||||||
local QEMU_VER=$(${QEMU} -version | head -n1 | cut -d' ' -f4 | cut -d'(' -f1)
|
local QEMU_VER=$(${QEMU} -version | head -n1 | cut -d' ' -f4 | cut -d'(' -f1)
|
||||||
|
@ -165,8 +165,6 @@ function vm_boot() {
|
||||||
ram="3G"
|
ram="3G"
|
||||||
fi
|
fi
|
||||||
echo " - RAM: ${ram}"
|
echo " - RAM: ${ram}"
|
||||||
echo " - UI: ${UI}"
|
|
||||||
echo " - VIRGL: ${VIRGL}"
|
|
||||||
|
|
||||||
local xres=1152
|
local xres=1152
|
||||||
local yres=648
|
local yres=648
|
||||||
|
@ -186,7 +184,17 @@ function vm_boot() {
|
||||||
yres=648
|
yres=648
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# GL is not working with GTK currently
|
||||||
|
if [ "${UI}" == "gtk" ]; then
|
||||||
|
GL="off"
|
||||||
|
else
|
||||||
echo " - Display: ${xres}x${yres}"
|
echo " - Display: ${xres}x${yres}"
|
||||||
|
fi
|
||||||
|
echo " - GL: ${GL}"
|
||||||
|
echo " - Virgil3D: ${VIRGL}"
|
||||||
|
echo " - Output: ${UI^^}"
|
||||||
|
|
||||||
|
|
||||||
# Set the hostname of the VM
|
# Set the hostname of the VM
|
||||||
local NET="user,hostname=${VMNAME}"
|
local NET="user,hostname=${VMNAME}"
|
||||||
|
@ -215,7 +223,7 @@ function vm_boot() {
|
||||||
${QEMU} -name ${VMNAME},process=${VMNAME} \
|
${QEMU} -name ${VMNAME},process=${VMNAME} \
|
||||||
${BIOS} \
|
${BIOS} \
|
||||||
-cdrom "${iso}" \
|
-cdrom "${iso}" \
|
||||||
-drive "file=${disk_img},format=qcow2,if=virtio,aio=native,cache.direct=on" \
|
-drive id=disk,file=${disk_img},format=qcow2,if=virtio,aio=native,cache.direct=on \
|
||||||
-enable-kvm \
|
-enable-kvm \
|
||||||
-machine q35,accel=kvm \
|
-machine q35,accel=kvm \
|
||||||
-cpu host,kvm=on \
|
-cpu host,kvm=on \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue