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?
How large are your "bal" files? You are getting surprising results.
Is it possible for you to send me the two versions of your program (at least the part that loads the layouts or creates them)?
Necroing this, but shouldn't it be possible to just load all layouts when the program is first started, with a progress bar showing the user how much left untill the program is ready.
Should make LoadLayout faster if it's only slow the first time it loads.