-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
egui image loader uses too much ram #5439
Comments
You have to keep in mind that egui decodes the image, so you can't really assume the memory size will match the file size. egui-file-dialog looks really great! |
Yeah, that kinda adds up. The current workaround is to keep track of the loaded files and use the |
The easiest would probably be using |
We are working on a file-dialog with egui, and we want to browse through files while displaying a preview image of the selected file using egui-loaders.
Describe the bug
When loading images with the egui loaders I see a huge memory increase.
After loading 10 images (each about 1 MB in size) the memory increases from 140 MB to 1.1 GB.
To Reproduce
Steps to reproduce the behavior:
cargo.toml
:But it also happens with the latest version on
master
.Expected behavior
I would assume that the RAM only increases in the same order as the size of the loaded files, not an order of magnitude more.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: