Fix present rate stats display, which was counting (roughly) twice for 2D

display, and flickering.
This commit is contained in:
howard-stearns 2015-12-04 15:10:46 -08:00
parent f71d2d00d2
commit 0a9b42ad3c
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() {