`-gpu host` runs the guest's GLES on this machine's real GPU, which here is
the host's, reached through virtio-gpu. That is right for the Compose
scroll benchmarks and was measured -- 25% janky frames against 3%, and
3.9 GB resident against 2.9 GB -- so it stays the default and nothing any
other session runs changes.
EMU_GPU=software takes the software branch that already existed for the
no-compositor case, for work where the emulator's own frame rate is not
under test. Two things it buys: no GPU use at all, and a guest Vulkan
device (SwiftShader, verified by `cmd gpu vkjson`), which is otherwise
unavailable here because gfxstream's opaque-fd external memory cannot pair
with Venus. Measured while it booted: qemu at about 490% CPU and a load
average of 5, with io pressure at zero.
The condition is on the existing branches rather than a fourth one, so
there is still one place that says how software rendering is spelled.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>