How to lazy load a scene

4.6

Threaded loading doesnt fully fix stutters when instantiating a scene. The real stutters come when you do “add_child” and instantiate. Is there any way at all in this world to load a scene piece by piece, while the fps is above a certain threshold?

How did you determine that?

cuz loading a scene stutters regardless if you use it

Works for me. You can see working code in my Game Template Plugin.

If you want help you’re going to have to give us a lot more info. Right now, this reads like a rant.

1 Like

You may not be using it properly.

the stutter comes from “add_child” and “instantiate” not the loading. Im just seeing if anyones build like a “Threaded Instancer And Lazy Load Add Child” tool or something.

Ive measured the times. add_child is definitely bottleneck.

Ok, why does that matter on a loading screen?

Because if you stutter in VR, it looks extremely bad and disorienting. Like the when you look around during loading where there are zero frames, idk how to explain but its bad.

What’s inside the scene?

Walls floors stuff. ive deleted nodes to measure which is causing the most load stutter Its not one big node causing a bottle neck,

Post your threaded loading code and add_child() benchmarking code.

Btw. you can’t call this a “load stutter” if add_child() is indeed the bottleneck.

1 Like

Well, that’s new information.

  • What device are you using?
  • Are you loading the game onto the device or streaming to it?

Try. Pretend that I am not there and cannot see what you see. Start from the beginning and describe the experience. Pretend we can’t read your mind. (Like when you assumed we knew you were talking about a VR game.)

2 Likes

@normalized @dragonforge-dev
Major props to both of you for pretty systematically showing mature patience and not just giving more rope. Repeatedly encouraging people to describe issues in the face of uncooperative “witnesses”.
If that’s not saintly, what is ? :wink:
Cheers !

2 Likes

vr headsets are slow it loads slowly thats the only problem. someones had to have made a tool for this somewhere im trying to leech off other peoples work. it aint a technical issue or anything like that

I have found this:

This does help slightly but not fully (it still adds the entire scene at once, missing some functionality like signals) but heres the link for anyone else

At this point, I recommend you go to the Discord channel, because that’s where all the VR people hang out. Since you’re insistent its a VR thing, and don’t want to explain what’s happening, perhaps they can help you. No one here does VR.

just forget i said vr :sob: . This aint a vr problem i shoulda never said vr.

you should just mute this thread i dont wanna waste any more of your time. I just wanted to see if someone made some kind of “lazy loader scene adder” tool.

Do you have ant custom shaders in your scene?