What actions should be taken to address the issue of excessive memory consumption by the UI

edited November 28 in Elecrow HMI Display

Widgets and Screens:
1.Try to minimize the number of widgets and screens used in your project.

Fonts:
1. Try to minimize the number of different font types used
2. Minimize the generated font characters to only those you'll actually use - avoid unnecessarily generated characters. Use the Range and Symbols sections in the Font Manager.
https://docs.squareline.io/docs/dev_env/fontmanager#create-new-font

Images:
1. Try to minimize the number of images used
2. Avoid using images with alpha channels when possible
3. Where applicable, tile images that can be repeated. For example, instead of saving a divider line as a full image, save just a small section and adjust the widget size in the editor to determine the image size.
4. Try to use style effects rather than images wherever possible.

Memory Optimization:
1. Use the Temporary option in screen settings. When enabled, this loads the screen into memory only when it appears. It's recommended to enable this for all screens so only one screen loads into memory at a time, rather than the entire project.
https://docs.squareline.io/docs/widgets#screen

Tagged:

Comments

  • To address excessive memory consumption by the UI, minimize widget and screen usage, reduce font types and characters, limit image use and avoid alpha channels, tile images where possible, and prioritize style effects. Enable the "Temporary" option for screens to load them only when needed, optimizing memory usage.

Sign In or Register to comment.