- update debug stats to remove unused items

- disable interpolation when doing unit or resource selection
This commit is contained in:
Mark Vejvoda 2013-01-12 07:36:14 +00:00
parent 90ad8581d7
commit 4d0811f0ec
2 changed files with 9 additions and 6 deletions

View File

@ -7495,7 +7495,10 @@ vector<Unit *> Renderer::renderUnitsFast(bool renderingShadows, bool colorPickin
//render
Model *model= unit->getCurrentModelPtr();
//if(this->gameCamera->getPos().dist(unit->getCurrVector()) <= SKIP_INTERPOLATION_DISTANCE) {
model->updateInterpolationVertices(unit->getAnimProgress(), unit->isAlive() && !unit->isAnimProgressBound());
// ***MV don't think this is needed below 2013/01/11
//model->updateInterpolationVertices(unit->getAnimProgress(), unit->isAlive() && !unit->isAnimProgressBound());
//}
if(colorPickingSelection == true) {
@ -7560,7 +7563,6 @@ vector<Object *> Renderer::renderObjectsFast(bool renderingShadows, bool resour
visibleIndex < qCache.visibleObjectList.size(); ++visibleIndex) {
Object *o = qCache.visibleObjectList[visibleIndex];
if(modelRenderStarted == false) {
modelRenderStarted = true;
@ -7602,7 +7604,10 @@ vector<Object *> Renderer::renderObjectsFast(bool renderingShadows, bool resour
if(resourceOnly == false || o->getResource()!= NULL) {
Model *objModel= o->getModelPtr();
//if(this->gameCamera->getPos().dist(o->getPos()) <= SKIP_INTERPOLATION_DISTANCE) {
objModel->updateInterpolationData(o->getAnimProgress(), true);
// ***MV don't think this is needed below 2013/01/11
//objModel->updateInterpolationData(o->getAnimProgress(), true);
//}
const Vec3f &v= o->getConstPos();

View File

@ -2413,8 +2413,6 @@ string World::getExploredCellsLookupItemCacheStats() {
string World::getFowAlphaCellsLookupItemCacheStats() {
string result = "";
int posCount = 0;
int sightCount = 0;
int surfPosCount = 0;
int alphaListCount = 0;
@ -2436,7 +2434,7 @@ string World::getFowAlphaCellsLookupItemCacheStats() {
totalBytes /= 1000;
char szBuf[8096]="";
snprintf(szBuf,8096,"pos [%d] sight [%d] [%d][%d] total KB: %s",posCount,sightCount,surfPosCount,alphaListCount,formatNumber(totalBytes).c_str());
snprintf(szBuf,8096,"surface count [%d] alpha count [%d] total KB: %s",surfPosCount,alphaListCount,formatNumber(totalBytes).c_str());
result = szBuf;
return result;
}