Disable POI data on Windows for the moment.
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.
This commit is contained in:
parent
85bfd27af2
commit
a0cf59d8af
1 changed files with 6 additions and 1 deletions
|
@ -40,6 +40,7 @@
|
||||||
#include "sqlite3.h"
|
#include "sqlite3.h"
|
||||||
|
|
||||||
// SimGear
|
// SimGear
|
||||||
|
#include <simgear/sg_inlines.h>
|
||||||
#include <simgear/structure/exception.hxx>
|
#include <simgear/structure/exception.hxx>
|
||||||
#include <simgear/debug/logstream.hxx>
|
#include <simgear/debug/logstream.hxx>
|
||||||
#include <simgear/bucket/newbucket.hxx>
|
#include <simgear/bucket/newbucket.hxx>
|
||||||
|
@ -1254,10 +1255,14 @@ void NavDataCache::doRebuild()
|
||||||
stampCacheFile(d->navDatPath);
|
stampCacheFile(d->navDatPath);
|
||||||
SG_LOG(SG_NAVCACHE, SG_INFO, "nav.dat load took:" << st.elapsedMSec());
|
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();
|
st.stamp();
|
||||||
poiDBInit(d->poiDatPath);
|
poiDBInit(d->poiDatPath);
|
||||||
stampCacheFile(d->poiDatPath);
|
stampCacheFile(d->poiDatPath);
|
||||||
SG_LOG(SG_NAVCACHE, SG_INFO, "poi.dat load took:" << st.elapsedMSec());
|
SG_LOG(SG_NAVCACHE, SG_INFO, "poi.dat load took:" << st.elapsedMSec());
|
||||||
|
#endif
|
||||||
|
|
||||||
loadCarrierNav(d->carrierDatPath);
|
loadCarrierNav(d->carrierDatPath);
|
||||||
stampCacheFile(d->carrierDatPath);
|
stampCacheFile(d->carrierDatPath);
|
||||||
|
|
Loading…
Add table
Reference in a new issue