Skip to content

Glow examples #508

@Ciantic

Description

@Ciantic

WGPU (latest version 27) and Vulkan uses over 170MB (or 300-400MB of GPU memory) of memory in release mode, so it is not viable for small apps. This is inherent problem with WGPU and Vulkan apparently.

I've vibed an example with Glow, and it seems to use only 18MB of memory in release mode. Maybe it would be nice to have some glow example in the repo itself?

Here is my vibed examples (Claude did most of it):

glutin, glow:

https://github.com/Ciantic/my-smithay-client-toolkit-tests/blob/main/glow-with-glutin/src/main.rs

wayland-egl, khronos-egl, glow:

https://github.com/Ciantic/my-smithay-client-toolkit-tests/blob/main/glow-with-wayland-egl/src/main.rs

(Glutin seems to use more few megs more memory.)


AMD GPU

Program USS Memory GPU Memory
WGPU+Vulkan 27 12MB 160MB
Glow with Glutin 18MB 88MB
Glow with Wayland-EGL 18MB 58MB

My WGPU example uses MemoryHints

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