Adam's Lair Forum
https://forum.adamslair.net:80/

Duality Tutorial - Basic loading screen
https://forum.adamslair.net:80/viewtopic.php?f=17&t=418
Page 1 of 1

Author:  SirePi [ 2015/03/09, 15:11 ]
Post subject:  Duality Tutorial - Basic loading screen

Description and sample files here.

Waiting for feedback :mrgreen:

Author:  RockyTV [ 2015/03/10, 04:27 ]
Post subject:  Re: Duality Tutorial - Basic loading screen

SirePi wrote:
Description and sample files here.

Waiting for feedback :mrgreen:

You could, uhm, write a blurb and then link to it.

EDIT: looks awesome, thank you! I didn't know it was possible to do. I thought you could only use preloadall. Thanks!

Author:  SirePi [ 2015/03/10, 08:27 ]
Post subject:  Re: Duality Tutorial - Basic loading screen

RockyTV wrote:
SirePi wrote:
Description and sample files here.

Waiting for feedback :mrgreen:

You could, uhm, write a blurb and then link to it.

EDIT: looks awesome, thank you! I didn't know it was possible to do. I thought you could only use preloadall. Thanks!

Lol thanks :mrgreen: maybe one day when I have enough stuff I'll think about it!

Author:  mikeg [ 2016/04/12, 12:16 ]
Post subject:  Re: Duality Tutorial - Basic loading screen

Great tutorial!
Why the code explicitly set Textures and Materials as not to be loaded?
Because
Code:
contentRef.MakeAvailable()
need to be invoked on the main thread?
I'm trying to understand how to convert it to load resources in background threads.
Thanks!

Author:  SirePi [ 2016/04/14, 19:39 ]
Post subject:  Re: Duality Tutorial - Basic loading screen

mikeg wrote:
Why the code explicitly set Textures and Materials as not to be loaded?
Because
Code:
contentRef.MakeAvailable()
need to be invoked on the main thread?
I'm trying to understand how to convert it to load resources in background threads.
Thanks!


Sort of.. the point is that Textures are managed by OpenGL, and that sort of management can only be done by the main thread (as you correctly said).
And since Materials are one level above Textures, they cannot be loaded by secondary threads as well.

Author:  mikeg [ 2016/04/14, 20:06 ]
Post subject:  Re: Duality Tutorial - Basic loading screen

Thanks for clarifications.

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/