[Orxonox-commit 1357] r6075 - code/trunk/src/libraries/core

rgrieder at orxonox.net rgrieder at orxonox.net
Mon Nov 16 11:29:59 CET 2009


Author: rgrieder
Date: 2009-11-16 11:29:59 +0100 (Mon, 16 Nov 2009)
New Revision: 6075

Modified:
   code/trunk/src/libraries/core/GraphicsManager.cc
Log:
Ogre plugins are only required when having graphics. This should speed up the dedicated startup quite a bit (at least on Windows).

Modified: code/trunk/src/libraries/core/GraphicsManager.cc
===================================================================
--- code/trunk/src/libraries/core/GraphicsManager.cc	2009-11-16 09:37:01 UTC (rev 6074)
+++ code/trunk/src/libraries/core/GraphicsManager.cc	2009-11-16 10:29:59 UTC (rev 6075)
@@ -97,8 +97,6 @@
 
         // Ogre setup procedure (creating Ogre::Root)
         this->loadOgreRoot();
-        // load all the required plugins for Ogre
-        this->loadOgrePlugins();
 
         // At first, add the root paths of the data directories as resource locations
         Ogre::ResourceGroupManager::getSingleton().addResourceLocation(PathConfig::getDataPathString(), "FileSystem", "dataRoot", false);
@@ -171,6 +169,9 @@
         if (renderWindow_ != NULL)
             return;
 
+        // load all the required plugins for Ogre
+        this->loadOgrePlugins();
+
         this->loadRenderer();
 
 #if OGRE_VERSION < 0x010600




More information about the Orxonox-commit mailing list