]> git.mxchange.org Git - flightgear.git/commitdiff
#424: Don't page out AI objects. Just load lazily.
authorThorstenB <brehmt@gmail.com>
Thu, 10 Nov 2011 21:12:54 +0000 (22:12 +0100)
committerThorstenB <brehmt@gmail.com>
Thu, 10 Nov 2011 21:12:54 +0000 (22:12 +0100)
Changes commit 1e7d072eed9060bede14ff04f8aca57237fad3cd and uses the new
deferred loading - instead of paged (un)loading.

src/AIModel/AIBase.cxx

index 93b8c1760e8e2dd0c53bdcff787e361b8f3ea9b0..69442229cd6c53f900aae92471a4ea6624bd7d1e 100644 (file)
@@ -267,7 +267,7 @@ bool FGAIBase::init(bool search_in_AI_path) {
     else
         _installed = true;
 
-    osg::Node * mdl = SGModelLib::loadPagedModel(f, props, new FGNasalModelData(props));
+    osg::Node * mdl = SGModelLib::loadDeferredModel(f, props, new FGNasalModelData(props));
 
     if (_model.valid())
     {