For some reason, it seems popular for GUI crates to use the GPU. I just want to make simple widgets, for like a calculator.

No fancy graphics. I want it quite lightweight.

For some reason, popular GUI crates love to do everything through a GPU, which bumps up the memory / cpu use significantly.

You are viewing a single thread.
View all comments
13 points

Funny you should mention that. I think iced as of four days ago can do this!

If I’m reading the release notes and Cargo.toml right, cargo add iced --no-default-features and you should be good to go, as tiny-skia will be used as a rendering backend instead of wgpu.

permalink
report
reply
13 points
*

OMG, thank you! I have been using Iced. My simple application’s RAM just went down from 80 MB to only 4 MB.

The executable size went down from about 8 MB to 2.5 MB

permalink
report
parent
reply
3 points

8MB to 2.5MB is a huge drop. I wonder what caused the bloat - a crate?

permalink
report
parent
reply
7 points

Most likely the GPU one

permalink
report
parent
reply

Rust

!rust@programming.dev

Create post

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits
  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

Community stats

  • 795

    Monthly active users

  • 873

    Posts

  • 3.7K

    Comments