+ // We want on demand database paging
+ viewer.setDatabasePager(new osgDB::DatabasePager);
+ viewer.getDatabasePager()->setUpThreads(1, 1);
+
+ /// now set up the simgears required model stuff
+
+ simgear::ResourceManager::instance()->addBasePath(fg_root, simgear::ResourceManager::PRIORITY_DEFAULT);
+ // Just reference simgears reader writer stuff so that the globals get
+ // pulled in by the linker ...
+ // FIXME: make that more explicit clear and call an initialization function
+ simgear::ModelRegistry::instance();
+
+ // FIXME Ok, replace this by querying the root of the property tree