Skip to content

On a machine whose only Vulkan device is a software one, render with OpenGL #140

Open

Description

@anderix

On this Debian VM (virtio GPU, no hardware Vulkan driver) wgpu picks Mesa's lavapipe, which renders on the CPU through an LLVM JIT: xodt's resident memory is 145 MB with an empty window at 136 MB, about 75 MB of it libLLVM, gallium, lavapipe and their buffers, measured 2026-11-11. The same release build on the Mac mini (Metal) is a 31 MB footprint. A machine like this one may well have an accelerated OpenGL driver (virgl) while its Vulkan is software, and the same holds for some older GPUs and remote desktops, where lavapipe also costs CPU on every frame.

eframe's wgpu setup can be told which backends to try and can be handed an adapter; preferring wgpu's GL backend when the only Vulkan adapter reports DeviceType::Cpu would keep a hardware path where one exists. Measure on this VM before and after.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions