Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Jari Pennanen
@Ciantic@twit.social  ·  activity timestamp 3 days 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.

  • Copy link
  • Flag this post
  • Block
Jari Pennanen
@Ciantic@twit.social replied  ·  activity timestamp 3 days 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
@Ciantic@twit.social replied  ·  activity timestamp 2 days 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
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login