In my weather app I use 24 Panels in the main GUI which get initialized at App startup. Every panel loads its own layout with Panel.LoadLayout(). I had the problem that the GUI initialization took very long (up to 10 seconds on my device).
First attempt to make this faster was to load the layouts for the panels only just before they get displayed (and this only once of course). This worked well for the "normal" panels but the 10 day forcast panel with 10 subpanels was still very slow when it got displayed the first time.
Then I tried to create the panels and their contents programatically. This did the trick. Doing this is MUCH faster than loading a layout with LoadLayout(). GUI initialization is now done in under a second. Are there any tricks to speed up layout loading with LoadLayout() or can this be optimized in the future?
First attempt to make this faster was to load the layouts for the panels only just before they get displayed (and this only once of course). This worked well for the "normal" panels but the 10 day forcast panel with 10 subpanels was still very slow when it got displayed the first time.
Then I tried to create the panels and their contents programatically. This did the trick. Doing this is MUCH faster than loading a layout with LoadLayout(). GUI initialization is now done in under a second. Are there any tricks to speed up layout loading with LoadLayout() or can this be optimized in the future?