egui icon indicating copy to clipboard operation
egui copied to clipboard

Memory (RAM) usage is weird, in version 0.29.1

Open wangxiaochuTHU opened this issue 4 months ago • 1 comments

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 avatar Oct 11 '24 02:10 wangxiaochuTHU