mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +02:00
Merge pull request #6563 from howard-stearns/fix-present-rate
Fix present rate stats display
This commit is contained in:
commit
2c2813e06e
2 changed files with 1 additions and 2 deletions
|
@ -121,7 +121,7 @@ void Stats::updateStats(bool force) {
|
|||
STAT_UPDATE(serverCount, nodeList->size());
|
||||
STAT_UPDATE(renderrate, (int)qApp->getFps());
|
||||
if (qApp->getActiveDisplayPlugin()) {
|
||||
STAT_UPDATE(presentrate, (int)qApp->getActiveDisplayPlugin()->presentRate());
|
||||
STAT_UPDATE(presentrate, (int)round(qApp->getActiveDisplayPlugin()->presentRate()));
|
||||
} else {
|
||||
STAT_UPDATE(presentrate, -1);
|
||||
}
|
||||
|
|
|
@ -303,7 +303,6 @@ void OpenGLDisplayPlugin::internalPresent() {
|
|||
glBindTexture(GL_TEXTURE_2D, _currentSceneTexture);
|
||||
drawUnitQuad();
|
||||
swapBuffers();
|
||||
updateFramerate();
|
||||
}
|
||||
|
||||
void OpenGLDisplayPlugin::present() {
|
||||
|
|
Loading…
Reference in a new issue