natinusala / borealis

Hardware accelerated, controller and TV oriented UI library for PC and Nintendo Switch (libnx)
Apache License 2.0
257 stars 81 forks source link

Reduce the number of layout passes on boot #114

Open natinusala opened 3 years ago

natinusala commented 3 years ago

When we start the app, the whole UI is created from the XML files. Every little XML view and attribute causes a whole layout pass on the entire activity view tree, which is bad.

We need a way to know when we are loading an XML file and differ all layout passes until this is done, do only do ONE pass in the end instead of multiple dozens.