this post was submitted on 01 Aug 2023
15 points (100.0% liked)

Rust

6947 readers
41 users here now

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)

founded 2 years ago
MODERATORS
 

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.

top 5 comments
sorted by: hot top controversial new old
[–] hunger@programming.dev 10 points 2 years ago (1 children)

Slint fits the bill: We have a demo running on a line-buffer in a microcontroller with <300KiB of RAM. Framebuffers are of course supported as well, as is GPU-accelerated rendering.

[–] BB_C@lemm.ee 5 points 2 years ago (1 children)

Did you tick "Bot Account" by accident?

[–] hunger@programming.dev 5 points 2 years ago

I did tick that, since I saw text boxes and went "give me everything" without reading:-)

Fixed. Thank you for pointing this out.

[–] BlueToo@lemmy.world -2 points 2 years ago (1 children)
[–] spikespaz@programming.dev 2 points 2 years ago

You have much to learn Young Padawan. If you're wanting to make a desktop app in Rust it behooves one to avoid embedded web environments. For performance reasons of course.