Merge pull request #6563 from howard-stearns/fix-present-rate

Fix present rate stats display
This commit is contained in:
Brad Hefta-Gaub 2015-12-04 15:27:45 -08:00
commit 2c2813e06e
2 changed files with 1 additions and 2 deletions

View file

@ -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);
}

View file

@ -303,7 +303,6 @@ void OpenGLDisplayPlugin::internalPresent() {
glBindTexture(GL_TEXTURE_2D, _currentSceneTexture);
drawUnitQuad();
swapBuffers();
updateFramerate();
}
void OpenGLDisplayPlugin::present() {