- update debug stats to remove unused items
- disable interpolation when doing unit or resource selection
This commit is contained in:
parent
90ad8581d7
commit
4d0811f0ec
|
@ -7495,7 +7495,10 @@ vector<Unit *> Renderer::renderUnitsFast(bool renderingShadows, bool colorPickin
|
||||||
//render
|
//render
|
||||||
Model *model= unit->getCurrentModelPtr();
|
Model *model= unit->getCurrentModelPtr();
|
||||||
//if(this->gameCamera->getPos().dist(unit->getCurrVector()) <= SKIP_INTERPOLATION_DISTANCE) {
|
//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) {
|
if(colorPickingSelection == true) {
|
||||||
|
@ -7560,7 +7563,6 @@ vector<Object *> Renderer::renderObjectsFast(bool renderingShadows, bool resour
|
||||||
visibleIndex < qCache.visibleObjectList.size(); ++visibleIndex) {
|
visibleIndex < qCache.visibleObjectList.size(); ++visibleIndex) {
|
||||||
Object *o = qCache.visibleObjectList[visibleIndex];
|
Object *o = qCache.visibleObjectList[visibleIndex];
|
||||||
|
|
||||||
|
|
||||||
if(modelRenderStarted == false) {
|
if(modelRenderStarted == false) {
|
||||||
modelRenderStarted = true;
|
modelRenderStarted = true;
|
||||||
|
|
||||||
|
@ -7602,7 +7604,10 @@ vector<Object *> Renderer::renderObjectsFast(bool renderingShadows, bool resour
|
||||||
if(resourceOnly == false || o->getResource()!= NULL) {
|
if(resourceOnly == false || o->getResource()!= NULL) {
|
||||||
Model *objModel= o->getModelPtr();
|
Model *objModel= o->getModelPtr();
|
||||||
//if(this->gameCamera->getPos().dist(o->getPos()) <= SKIP_INTERPOLATION_DISTANCE) {
|
//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();
|
const Vec3f &v= o->getConstPos();
|
||||||
|
|
||||||
|
|
|
@ -2413,8 +2413,6 @@ string World::getExploredCellsLookupItemCacheStats() {
|
||||||
string World::getFowAlphaCellsLookupItemCacheStats() {
|
string World::getFowAlphaCellsLookupItemCacheStats() {
|
||||||
string result = "";
|
string result = "";
|
||||||
|
|
||||||
int posCount = 0;
|
|
||||||
int sightCount = 0;
|
|
||||||
int surfPosCount = 0;
|
int surfPosCount = 0;
|
||||||
int alphaListCount = 0;
|
int alphaListCount = 0;
|
||||||
|
|
||||||
|
@ -2436,7 +2434,7 @@ string World::getFowAlphaCellsLookupItemCacheStats() {
|
||||||
totalBytes /= 1000;
|
totalBytes /= 1000;
|
||||||
|
|
||||||
char szBuf[8096]="";
|
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;
|
result = szBuf;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user