client-toolkit icon indicating copy to clipboard operation
client-toolkit copied to clipboard

Glow examples

Open Ciantic opened this issue 3 months ago • 0 comments

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

Ciantic avatar Nov 25 '25 10:11 Ciantic