Bracket threshold.xml loading in a DB transaction.
Should mitigate (but not completely fix, yet) bad map performance when initially zooming out, or panning when zoomed out.
This commit is contained in:
parent
82884ab3c6
commit
18da917ddd
1 changed files with 11 additions and 5 deletions
|
@ -391,11 +391,17 @@ void FGAirport::loadSceneryDefinitions() const
|
|||
return;
|
||||
}
|
||||
|
||||
SGPropertyNode_ptr rootNode = new SGPropertyNode;
|
||||
readProperties(path.str(), rootNode);
|
||||
const_cast<FGAirport*>(this)->readThresholdData(rootNode);
|
||||
cache->stampCacheFile(path);
|
||||
|
||||
try {
|
||||
cache->beginTransaction();
|
||||
SGPropertyNode_ptr rootNode = new SGPropertyNode;
|
||||
readProperties(path.str(), rootNode);
|
||||
const_cast<FGAirport*>(this)->readThresholdData(rootNode);
|
||||
cache->stampCacheFile(path);
|
||||
cache->commitTransaction();
|
||||
} catch (sg_exception& e) {
|
||||
cache->abortTransaction();
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
void FGAirport::readThresholdData(SGPropertyNode* aRoot)
|
||||
|
|
Loading…
Add table
Reference in a new issue