]> git.mxchange.org Git - flightgear.git/commitdiff
Disable POI data on Windows for the moment.
authorJames Turner <zakalawe@mac.com>
Sat, 6 Apr 2013 16:40:28 +0000 (17:40 +0100)
committerJames Turner <zakalawe@mac.com>
Sat, 6 Apr 2013 16:40:28 +0000 (17:40 +0100)
Avoid horrible startup times for Windows users. It would be good
if someone with a Windows box, debug environment and some time could
investigate further.

src/Navaids/NavDataCache.cxx

index 5928ddaa6a68a3b8f549c6354a5a8640744e24be..dc8cae0cbc7c77df55f94e8cc846cdeb0ef4816c 100644 (file)
@@ -40,6 +40,7 @@
 #include "sqlite3.h"
 
 // SimGear
+#include <simgear/sg_inlines.h>
 #include <simgear/structure/exception.hxx>
 #include <simgear/debug/logstream.hxx>
 #include <simgear/bucket/newbucket.hxx>
@@ -1254,11 +1255,15 @@ void NavDataCache::doRebuild()
     stampCacheFile(d->navDatPath);
     SG_LOG(SG_NAVCACHE, SG_INFO, "nav.dat load took:" << st.elapsedMSec());
 
+#ifdef SG_WINDOWS
+    SG_LOG(SG_NAVCACHE, SG_ALERT, "SKIPPING POI load on Windows");
+#else
     st.stamp();
     poiDBInit(d->poiDatPath);
     stampCacheFile(d->poiDatPath);
     SG_LOG(SG_NAVCACHE, SG_INFO, "poi.dat load took:" << st.elapsedMSec());
-    
+#endif
+      
     loadCarrierNav(d->carrierDatPath);
     stampCacheFile(d->carrierDatPath);