Switching between Menu and rendered content is blowing memory #2276
Replies: 2 comments
-
Posted at 2020-12-31 by @gfwilliams Hi! I think one thing that might be hurting you is:
Because I don't think you ever remove this listener, so each call to There may also be some watches you're not removing too. You could try:
And see if you can see any one of those growing in size for each switch. The most common memory hog with the menus is if you do |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-01-01 by AxelRHD Hi @gfwilliams. Happy new year and thank you for the hints. Didn't know about the E-getSizeOf(x)-method. Very helpful. I will search for my memory eaters. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2020-12-30 by AxelRHD
Hello everybody.
This is my second attempt to write an app for Football Officiating and ran into problems again. Graphics and Buffers are not my friends, I think.
The code is growing, but the simple switch from my main screen and the menu (BTN3) back and forth is somehow poluting my memory (it grows 1% every switch).
Before using the Menu-Component I thought my solution with resizing and clearing the buffer is a good idea. Maybe someone has a better solution for a non flickering output?
Code is attached (too long).
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions