Discussion
Loading...

Post

  • Log in
  • Sign up
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Jari Pennanen
Jari Pennanen
@Ciantic@twit.social  ·  activity timestamp 5 months ago

Really painful, I want #Rust GUI toolkit for Wayland that minimizes memory usage. My UI is two textboxes and five labels, I don't want to use browsers.

#EGUI = 105MB of memory
#GPUI with GPUI-components = 100MB of memory

However running Smithay example Wayland window takes only 2MB of memory! But it is not toolkit, it doesn't have textboxes etc.

If toolkit uses already over 100MB of memory, it feels like I could just use webview, sigh.

#gpui #egui #rust
  • Copy link
  • Flag this post
  • Block
Jari Pennanen
Jari Pennanen
@Ciantic@twit.social  ·  activity timestamp 5 months ago

If I had to guess, a lot of memory usage for GPU based renderers is fonts, and retaining the glyphs as bitmaps and vectors in memory for multiple sizes.

  • Copy link
  • Flag this comment
  • Block
Jari Pennanen
Jari Pennanen
@Ciantic@twit.social  ·  activity timestamp 5 months ago

Winner is... QT! 50MB of memory with two textboxes and labels.

I bet this is because QT uses shared libraries and can share a lot of things with #KDE I'm running.

I used this: https://github.com/KDAB/cxx-qt not sure how ergonimic it is with Rust yet, but it runs.

sudo dnf install qt6-qtbase qt6-qtbase-gui qt6-qtbase-devel qt6-qtdeclarative-devel

cargo build --release

#QT

  • Copy link
  • Flag this comment
  • Block
Instance logo
bonfire.cafe
Log in Create account
Banner for bonfire.cafe

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire bovenjan · 1.0.3-alpha.10 no JS en
Federation disabled
Instance logo
  • Explore
  • About
  • Members
  • Code of Conduct

You need to log in to see that page.

Install bonfire.cafe

Get the full app experience

1 Tap Share 2 Add to Home Screen