The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes

This is happening on Android. In the Godot Editor, it works just fine.

I am using the background loading method shown in the documentation:

Textures are not loaded on Android.

Video showing error:

Example project with reproducible issue

in Engine by (36 points)
edited by

I never practiced background loading, but at a glance I notice a few things:
I assume you want to load thoses cities asynchronously?

preload loads a resource on the main thread when the script gets loaded, so you should not even think about using it for background loading (the demo is using it for a helper script only).

Similarly, const can be used only with constant expressions that can be evaluated when the script is loaded, and load is not one of them. So don't use this either if you want to load its value in background.

The code you are showing doesn't look like the example and I don't see much useful info in the videos, so can't really say more...

Thanks, and sorry about the shortness in the question. I'm trying to put together a sample project.

About the const/load, my bad, when copy pasting I edited the preload, but left the const.

Then more generally, to load a scene, which in turn load other scenes async, should I use the resource_queue instead of the load/preload for those subscenes too?

Also I've tried the same (with the preload), and it works with smaller textures.

I've added a test project with the issue. Right now I'm not using preload nor load, but the script from the official docs. Hope it helps.

Did you get it to work yet? I encounter the same problem, sort of.

Sorry for the delay. The answer is no. I can't for the life of me get a way to make it work. I posted an issue on github, and they tagged it as a "OpenGL 3.0 and Adreno GPU not being compatible", but not sure really.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.