This is an automated archive made by the Lemmit Bot.

The original was posted on /r/rust by /u/kernelic on 2023-11-04 17:20:19.


I tried to write a new UI framework in Rust, but I’ve noticed that every graphics API consumes a lot of memory. I’m only creating the bare minimum for rendering, I don’t even display anything yet, but the graphics context (both Vulkan and DX12) already consumes about 20 MB of memory, which is a lot if you compare it to good old Win32 applications that don’t even need 3 MB of memory.

I know that 20 MB is basically nothing, but I strive for maximum efficency. People seem to jump on the WGPU train for new UI frameworks. Those usally start at 100+ MB of memory usage for me. Maybe it’s the large textures you need to allocate for a 4k screen? Can we do better than this?