-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
2023.9.1-PR116: Move sbitmap to EHMTX::queue #119
2023.9.1-PR116: Move sbitmap to EHMTX::queue #119
Conversation
Didn't notice the increase in size...
After
|
4 days, no problems, everything is stable in all modes. |
This is a waste of RAM if you are using other components like a microphone or other components, this isn't good. I agree with having more dynamic icons would be nice, but not like this. Perhaps you can set the amount of sbitmaps at compile time and introduce a new screen_type |
I haven't noticed any problems, I have WEB enabled, and other additional sensors, no memory issues. |
To save memory, it is necessary to make a dynamic queue and a dynamic array of icons, then when adding an entity will be created and added to the required list, when it is not needed memory is released. |
@lubeda We can try to make this array dynamic:
and allocate memory as needed:
But I don’t yet know where to properly clean it. When a screen is removed from the queue. |
I changed sbitmap to a dynamic array, checked it, it works. |
About three to five screens a day. Everything's stable. No degradation has been noticed. |
…creentime' into 2023.9.1
…ng_with_long_text' into 2023.9.1
Conflict resolved. |
nice implementation |
Thanks |
#116 (comment)