We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Async loading of scenes for stable fps

Home Forums General Questions Async loading of scenes for stable fps

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #47232
    dragosburian
    Customer

    Hello,

    Is there any possibility to append scenes in an asynchronous manner so that the 3d does not suffer any performance issues while it is happening in the background? If not, could this feature be developed for a future version?

    Dragos

    #47233
    dragosburian
    Customer

    Also of high importance, could appending scenes be done in such a manner that if the material already exists in the first scene, the second one will just use that instead of doubling it?

    Kind regards,
    Dragos

    #47241

    Hi, can you please elaborate a bit how this issue is reproduced. It can be either of two:

    1) Data is loaded via network in the background so it should not cause any FPS drop. So your issue is purely with long time the user have to wait before the new assets appear.

    2) Scenes with lots of shaders/geometry/animation may cause FPS drops when the engine finishes with data fetch and starts preparing the loaded data.

    To verify 1, please use slower network connection or throttle network speed in Chrome.

    To verify 2, enable FPS counter in your app.

    Regarding materials, the engine already caches the shaders, so it will take less time when they are loaded second time.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #47248
    dragosburian
    Customer

    Hello,
    The problem is more similar to the 2nd point, so that is why I thought about loading/preparing the scene in async from the main one.

    #47268
    Yorick
    Customer

    To clarify: we’re talking about two separate issues.

    1. We will do a FPS test with the loading in the background and get back to you.
    2. When appending a scene, we are unable to make it use the material in the fist scene. How can we do this?
    #47327

    I see.
    Regarding the second issue, here is the basic example how this material assignment can be achieved. If done is such a manner, there should not be any additional shader compilation time spent.

    Attachments:
    You must be logged in to view attached files.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #47424
    dragosburian
    Customer

    Hello Alexander,

    There are 2 problems with the approach in our use case:
    1)The models we append are very complex and there are more materials to them->but the material re-assignment is sorted by me in js so that one is fixed.
    2)The appended models also have morphed objects in them, and sometimes morphing stops working or materials do not show properly on them when we assign a material that is already in the scene. The only solution I found to it is make a new material for them, but that beats our purpose since we want to make the scene lighter.

    I will do some fps testing and get back to you on the first issue.

    Dragos

    #48658
    Victor Vallejo
    Customer

    I have a similar setup , my problem is that i want to execute a function when the appended scene is rendered in the screen instead of when it was 100% downloaded but not yet ready rendered

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.