Kasuns
Topic Author
Posts: 4
Joined: 24 Nov 2020, 17:06

Scene load time issues on Android

25 Nov 2020, 13:47

Hello! First time here. We are developing a game suitable for Windows and Android platforms, now using Noesis 3.0.7 and Unity 2019.4 LTS. There are scenes which practically consists of viewmodel and noesisview, no expensive textures/animations. Just three buttons inside grid. Those scenes load fine while on Windows, still on Android it takes ~5 s to load view only. Is there any way to optimise the view load process for Android?
Testing device: Xperia XA Plus (
4GB RAM,
Android 7.0,
Mediatek MT6757, octa-core 64 bits
);
 
User avatar
jsantos
Site Admin
Posts: 3917
Joined: 20 Jan 2012, 17:18
Contact:

Re: Scene load time issues on Android

25 Nov 2020, 13:51

Are you moving all styles to the global resource dictionary? If not, every XAML if loading the styles locally
 
Kasuns
Topic Author
Posts: 4
Joined: 24 Nov 2020, 17:06

Re: Scene load time issues on Android

25 Nov 2020, 14:10

Are you moving all styles to the global resource dictionary? If not, every XAML if loading the styles locally
I am using application resources in noesis settings asset. All styling is there. Even if i remove the reference from noesis settings, it doesnt give speed boost. For testing purposes i removed all the converters, still no progress
 
Kasuns
Topic Author
Posts: 4
Joined: 24 Nov 2020, 17:06

Re: Scene load time issues on Android

25 Nov 2020, 14:33

It also looks that every scene inside Android takes ~5s to load first time, next time they load fast, might be some cache things. Still, this behaviour doesn't apply for scenes with Noesis views assigned
 
User avatar
jsantos
Site Admin
Posts: 3917
Joined: 20 Jan 2012, 17:18
Contact:

Re: Scene load time issues on Android

25 Nov 2020, 15:56

Is this happening on subsequent executions (without deploying again) ? Every time the app is deployed Android clears the shader cache and generates it again. This step can take a few seconds in some Android devices.
 
Kasuns
Topic Author
Posts: 4
Joined: 24 Nov 2020, 17:06

Re: Scene load time issues on Android

27 Nov 2020, 13:55

Is this happening on subsequent executions (without deploying again) ? Every time the app is deployed Android clears the shader cache and generates it again. This step can take a few seconds in some Android devices.
Yeah, if i launch the app without deploy, the scenes without Noesis views loads faster in next launch. Scenes with noesis remain slow-loading. I also tested my solution on Bluestacks Emulator and other device (Samsung Galaxy A20e), couldn't repeat the scene lag. Maybe that depends on hardware somehow.
 
User avatar
jsantos
Site Admin
Posts: 3917
Joined: 20 Jan 2012, 17:18
Contact:

Re: Scene load time issues on Android

27 Nov 2020, 14:28

Does Android Logcat (with a Unity development build) reveal something? I would bet it is the shader cache generation but that should only happen first time the app is executed.
 
supb
Posts: 2
Joined: 30 Nov 2023, 13:59

Re: Scene load time issues on Android

30 Nov 2023, 14:14

Has there been any solution to this? Experiencing the exact same thing on android devices. Loading a scene takes twice the time it used to on first load, after that its back to normal. This has occurred since upgrading from 3.0.12 to 3.1 and newer, currently on 3.2.2.
 
User avatar
jsantos
Site Admin
Posts: 3917
Joined: 20 Jan 2012, 17:18
Contact:

Re: Scene load time issues on Android

30 Nov 2023, 14:22

We don't have enough information yet to solve anything here. Could you please run with the Unity profiler to gather more information?

Also, when you say "after that its back to normal", you mean in subsequent executions of the same app, or in the same execution, opening the scene again.
 
supb
Posts: 2
Joined: 30 Nov 2023, 13:59

Re: Scene load time issues on Android

30 Nov 2023, 14:38

Have done some profiling, but have been unable to pinpoint the problem. NoesisView.Update and LateUpdate are appearing but havent been able to find anything more detailed.

In the same instance of the app, first time loading a scene is alot slower than if navigating back to main menu and re-opening the scene again.

Who is online

Users browsing this forum: Google [Bot] and 8 guests