Asynchronous loading of resources

muruba

New member
CX Code Contributor
3rd Party Module Dev
Tutorial Author
Patreon Silver
Joined
Jul 5, 2017
Messages
230
Hi all,

I am wondering if there is a solution out there to do asynchronous loading of sound/images/etc with the progress updates?

Thank you

Cheers
 

muruba

New member
CX Code Contributor
3rd Party Module Dev
Tutorial Author
Patreon Silver
Joined
Jul 5, 2017
Messages
230
Html5 in particular, i also noticed ios is not too fast or my ipad is too old (gen 2)
 

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
3,168
I am not on my computer but there asyncronous loading commands for html5. Did you try these? Or were you looking for complete, drop-in solution?

Regarding ios? Slow? Please open a separate topic and some detaila plus with sample code.
 

muruba

New member
CX Code Contributor
3rd Party Module Dev
Tutorial Author
Patreon Silver
Joined
Jul 5, 2017
Messages
230
[QUOTE="Regarding ios? Slow? Please open a separate topic and some detaila plus with sample code.[/QUOTE]

I mean there is a black screen for some time I suspect when the resources are loaded, I don't expect them to load quickly anyways, just want to show progress to the user....
 

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
3,168
Yes you get that when you load many assets in OnCreate. Look into OnLoading. It is to render stuff when the loading in OnCreate takes to long.
Also If the loading takes to long in ios, the app might crash so it might be better to look into something else aka switch to OnUpdate to load content.
 
Top Bottom