Page 1 of 1

Content loading in background

Posted: 10 Sep 2018, 05:24
by Naggar
Hello guys.

This may be a stupid question but I’ve been having this issue for most of my applications and hoping its possible to solve it.
Many of my projects include a large library of content/data (videos, images, text) which i usually load using directory/url nodes, linked to folders in public documents. Obviously its the same node that is switching between content, and when the switch happens there is always a lagg (some long and some short) regardless if Async is turned on or off. I’ve managed to make this lagg minimal with dds images but videos still always lagg.

So my long question is:
Is it possible to make this lagg happen in the background so that if a video has been switched and lets say it will take 2 seconds to load.. i can replace the video with an animation representing “loading” and once the “loaded” event is triggered in the video output I could fade in the video - Rather than ventuz freezing while the video is loading?

Thanks

Re: Content loading in background

Posted: 10 Sep 2018, 09:58
by Dennis
Aloha,

not only the DIR node has to be set to async, the Movie Clip node has to get the async flag as well ;)

That works flawless without any stall.

RegArts
Dee

:ugeek:

Re: Content loading in background

Posted: 11 Sep 2018, 11:57
by Naggar
Thanks Dennis..

I have enabled all flags for Async and disabled all flags for Auto Update.. this includes 8 texture nodes loading PNG files, a movie clip node, and 1 text file.. all taking from its own directory node also with enabled Async and disabled Auto Update.

Most of the lagg is caused by "TextureResourceGen" which in some cases goes up to 110 ms (attached SS) so I believe that the images is causing this.

Another Note:
In the TxtFile node - with Async flag disabled i have no issues (and lag is unnoticeable).. but having the Async flag enabled has an issue.. the text updates properly if it reads a different file.. but if the file "does not exist" it should give me nothing in the text output; but instead it keeps the last info that was available.. is that how its supposed to work?

Also note this is a V5.4 project not V6.1

thanks

Re: Content loading in background

Posted: 11 Sep 2018, 12:35
by Dennis
Ok hmm..

there might be one other trap where you might have stepped into, but the best would be if you could pack the project and send it to us.. support @ ...
all scenes are handled confidential dont worry.

regArds
Dee

:ugeek:

Re: Content loading in background

Posted: 11 Sep 2018, 13:23
by Naggar
Will Do.
Thanks :)

Re: Content loading in background

Posted: 12 Sep 2018, 09:48
by Karol
Hi Naggar,

the problem is that you do not use the texture that you have loaded with the async Texture Loader but you load the same texture again in the Material node (this time synchronously and stalling)!
You did not bind the Texture property from the 'Aspect Logic' container to the Material node ('Image') but the File Url.

Best Regards
Karol

Re: Content loading in background

Posted: 12 Sep 2018, 11:53
by Naggar
Wow.. I didn't see that
Thanks for pointing it out Karol. and thanks for the support :)

Re: Content loading in background

Posted: 19 Sep 2018, 08:08
by Naggar
Sorry.. another question

So the loading of Images works fine, but if its not Image,Video,Text, or mesh; what can cause the "ResourceGen" to spike?