Skip to content
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

Memory (RAM) usage is weird, in version 0.29.1 #5245

Open
wangxiaochuTHU opened this issue Oct 11, 2024 · 1 comment
Open

Memory (RAM) usage is weird, in version 0.29.1 #5245

wangxiaochuTHU opened this issue Oct 11, 2024 · 1 comment
Labels
bug Something is broken

Comments

@wangxiaochuTHU
Copy link
Contributor

wangxiaochuTHU commented Oct 11, 2024

Describe the bug

  • When normally working, the memory usage is about twice as large as that in version 0.28.1 (300MB vs 150MB).
  • Especially, the memory usage will continue to increase significantly when the app (which is using eframe) is minimized.

To Reproduce
Steps to reproduce the behavior:

  1. Setup an app that constantly receives sequencial images and renders textures, then run it.
  2. Minimize the app
  3. One would see the memory usage increases, e.g, from 300MB to 9000MB (stepping by about 300MB)
  4. But when we resize the app and let it show up, the memory usage would drop back to 600MB and hold on this level.

Expected behavior
Memory usage should have no (or less) relationship with minimization.

Screenshots

Desktop (please complete the following information):

  • OS: Windows 11

Additional context

The Egui::Options have already been set as follows

reduce_texture_memory = true;
max_passes = NonZeroUsize::new(1).unwrap;
repaint_on_widget_change = false;
@wangxiaochuTHU wangxiaochuTHU added the bug Something is broken label Oct 11, 2024
@wangxiaochuTHU
Copy link
Contributor Author

Seems that the solution given by #5113 can also solve the memory usage problem of minimization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken
Projects
None yet
Development

No branches or pull requests

1 participant