Game Development Community

Asynchronous file loading

by Chris Garrett (CG) · in Torque Game Engine · 09/30/2003 (7:21 am) · 4 replies

Based on object deleting/loading on the fly:

www.garagegames.com/mg/forums/result.thread.php?qt=3249

I have found that the load of objects is a real performance hit. Is it possible to asynchronously load the images for my objects. For the app that Im making it would be perfectly acceptable for some to render late.

Does anyone have thoughts on this?

CG

#1
09/30/2003 (7:50 am)
There is a "preload" field for many sorts of datablocks. If you specify preload then objects are loaded all up front. When you say "performance hit" it sounds like you mean the first rendering is slowed down by object loading. If you use preload then these objects will be loaded before the level is displayed.

I do not know of a way to load "asynchronously" as you are asking.
#2
09/30/2003 (8:01 am)
Objects will load automagically if you add them in-game. However, this is synchronous.
#3
09/30/2003 (8:50 am)
Where would I find more info on the preloading objects?

Thanks

CG
#4
09/30/2003 (8:52 am)
Search the source for preload