- some performance updates to fog of war computation
This commit is contained in:
parent
284371f206
commit
70817a07d1
|
@ -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());
|
||||
|
||||
//compute texture
|
||||
if(fogOfWar) {
|
||||
for(int i=0; i<getFactionCount(); ++i) {
|
||||
//if(factionIdxToTick == -1 || factionIdxToTick == this->thisFactionIndex) {
|
||||
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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user