mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 07:44:11 +02:00
Merge pull request #5123 from ZappoMan/LODstats
add LOD stats to the default stats
This commit is contained in:
commit
214f07d5f4
1 changed files with 6 additions and 8 deletions
|
@ -464,7 +464,7 @@ void Stats::display(
|
||||||
verticalOffset = STATS_PELS_INITIALOFFSET;
|
verticalOffset = STATS_PELS_INITIALOFFSET;
|
||||||
horizontalOffset = _lastHorizontalOffset + _generalStatsWidth + _pingStatsWidth + _geoStatsWidth + 3;
|
horizontalOffset = _lastHorizontalOffset + _generalStatsWidth + _pingStatsWidth + _geoStatsWidth + 3;
|
||||||
|
|
||||||
lines = _expanded ? 10 : 2;
|
lines = _expanded ? 10 : 3;
|
||||||
|
|
||||||
drawBackground(backgroundColor, horizontalOffset, 0, canvasSize.x - horizontalOffset,
|
drawBackground(backgroundColor, horizontalOffset, 0, canvasSize.x - horizontalOffset,
|
||||||
(lines + 1) * STATS_PELS_PER_LINE);
|
(lines + 1) * STATS_PELS_PER_LINE);
|
||||||
|
@ -612,12 +612,10 @@ void Stats::display(
|
||||||
}
|
}
|
||||||
|
|
||||||
// LOD Details
|
// LOD Details
|
||||||
if (_expanded) {
|
octreeStats.str("");
|
||||||
octreeStats.str("");
|
QString displayLODDetails = DependencyManager::get<LODManager>()->getLODFeedbackText();
|
||||||
QString displayLODDetails = DependencyManager::get<LODManager>()->getLODFeedbackText();
|
octreeStats << "LOD: You can see " << qPrintable(displayLODDetails.trimmed());
|
||||||
octreeStats << "LOD: You can see " << qPrintable(displayLODDetails.trimmed());
|
verticalOffset += STATS_PELS_PER_LINE;
|
||||||
verticalOffset += STATS_PELS_PER_LINE;
|
drawText(horizontalOffset, verticalOffset, scale, rotation, font, (char*)octreeStats.str().c_str(), color);
|
||||||
drawText(horizontalOffset, verticalOffset, scale, rotation, font, (char*)octreeStats.str().c_str(), color);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue