FlareLine / SwinApp

Swinburne's second-rate student app
4 stars 0 forks source link

Long loading screen #4

Open Narik1 opened 7 years ago

Narik1 commented 7 years ago

Hard to tell whether he app is actually doing anything​. Perhaps add a splash screen?

FlareLine commented 7 years ago

This could be related: Xamarin Forms startup times are unusably slow

FlareLine commented 7 years ago

We could display a startup splash screen: _Creating a Splash Screen_

pielegacy commented 7 years ago

Looks like some of this could have to do with my XAML markup as I didn't know that using a lot of StackLayout is impactful on performance as well as me using ListView a bit. That being said another issue is that the components (which there are a lot of them) aren't being compiled which is a performance problem

pielegacy commented 7 years ago

On my 5X I timed my release build to startup in 3-4 seconds

pielegacy commented 7 years ago

diagnostics

Apparently this output log can tell us what tasks are using too much memory on the main UI thread

pielegacy commented 7 years ago

image According to this StackOverflow thread it has something to do with doing too much shit on the UI thread so maybe something about the way I'm calling the Async tasks isn't really separate from the UI thread

pielegacy commented 7 years ago

Did find an unnecessary implementation of StackLayout in the menu when a grid could've done the same thing

pielegacy commented 7 years ago

VS Emulated Device

Specs

RAM: 768mb Graphics Emulated: Yes Android Version: 6.0


Startup Results

pielegacy commented 7 years ago

image Implemented user data loading with a task, no longer skipping frames :D