Code from @u-foka to deallocate memory for menu buttons that are not currently visible on the screen (i.e. when opening a sub-menu or an app), as suggested in issue #1914.
(Each menu button consumes about 300 bytes, so deallocating 10 of them, for example, saves about 3KB.)
Code from @u-foka to deallocate memory for menu buttons that are not currently visible on the screen (i.e. when opening a sub-menu or an app), as suggested in issue #1914.
(Each menu button consumes about 300 bytes, so deallocating 10 of them, for example, saves about 3KB.)
Thanks to @u-foka.
Test version here: https://discord.com/channels/719669764804444213/722101917135798312/1216473993113112636