mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 15:41:24 +02:00
- some performance updates to fog of war computation
This commit is contained in:
@@ -1046,6 +1046,7 @@ void World::computeFow(int factionIdxToTick) {
|
|||||||
if(chrono.getMillis() > 0) SystemFlags::OutputDebug(SystemFlags::debugPerformance,"In [%s::%s] Line: %d took msecs: %lld\n",__FILE__,__FUNCTION__,__LINE__,chrono.getMillis());
|
if(chrono.getMillis() > 0) SystemFlags::OutputDebug(SystemFlags::debugPerformance,"In [%s::%s] Line: %d took msecs: %lld\n",__FILE__,__FUNCTION__,__LINE__,chrono.getMillis());
|
||||||
|
|
||||||
//compute texture
|
//compute texture
|
||||||
|
if(fogOfWar) {
|
||||||
for(int i=0; i<getFactionCount(); ++i) {
|
for(int i=0; i<getFactionCount(); ++i) {
|
||||||
//if(factionIdxToTick == -1 || factionIdxToTick == this->thisFactionIndex) {
|
//if(factionIdxToTick == -1 || factionIdxToTick == this->thisFactionIndex) {
|
||||||
Faction *faction= getFaction(i);
|
Faction *faction= getFaction(i);
|
||||||
@@ -1083,6 +1084,7 @@ void World::computeFow(int factionIdxToTick) {
|
|||||||
}
|
}
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(chrono.getMillis() > 0) SystemFlags::OutputDebug(SystemFlags::debugPerformance,"In [%s::%s] Line: %d took msecs: %lld\n",__FILE__,__FUNCTION__,__LINE__,chrono.getMillis());
|
if(chrono.getMillis() > 0) SystemFlags::OutputDebug(SystemFlags::debugPerformance,"In [%s::%s] Line: %d took msecs: %lld\n",__FILE__,__FUNCTION__,__LINE__,chrono.getMillis());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user