#Background loading in Godot 4

12 messages · Page 1 of 1 (latest)

vagrant barn
#

How do I do background loading in Gd4? The docs are outdated and I cant find out how to get progress (%), instead only a bool if its done or not...

inner sapphire
#

Have you looked at the docs for ResourceLoader?

vagrant barn
#

rofl the docs for godot 3 are outdated too

vagrant barn
vagrant barn
# inner sapphire Have you looked at the docs for `ResourceLoader`?

I've tried that, first of all it's kinda hard to understand, second after I've written code to background load a scene it causes heavy stutter for about 0.2s which I initially wanted to avoid by background loading it (better than a 0.2s freeze, but still not what I'm looking for..)

#

I'm also confused about this, passing in an array still returns a ThreadLoadStatus, not a progress.

vagrant barn
#

The array passed in seems to get changed to [0], no matter when i poll its status

vagrant barn
#

Should I report this as an issue on github?

inner sapphire
#

Are you checking it regularly, or only after it's loaded?

vagrant barn
#

Im checking it in _process

#

And starting in _ready