Skip to content

Unexpected memory allocation #6718

Answered by ogoffart
PsycHead asked this question in Q&A
Nov 4, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Thanks for the extra details!

The increased memory with the Qt backend is likely due to how Qt initializes resources, including a font cache, even if no UI is shown. This is built into Qt to make later UI actions faster, but we don't have control over it.

As for memory not freeing after dropping all Slint objects, that’s due to caching. There’s currently no easy way to fully "unload" them once initialized.

If keeping memory low when idle is crucial, I’d recommend trying the winit backend with the software renderer, as it uses less memory overall.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ogoffart
Comment options

Answer selected by PsycHead
@PsycHead
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #6716 on November 04, 2024 17:59.