Add variable name for throttled frame rate, change to multiple of 60FPS

This commit is contained in:
Philip Rosedale 2014-03-14 17:09:09 -07:00
parent ab05e4ba69
commit 3e1bf7fbb8

View file

@ -13,9 +13,11 @@
#include <QUrl> #include <QUrl>
#include <QMainWindow> #include <QMainWindow>
const int MSECS_PER_FRAME_WHEN_THROTTLED = 66;
GLCanvas::GLCanvas() : QGLWidget(QGLFormat(QGL::NoDepthBuffer)), GLCanvas::GLCanvas() : QGLWidget(QGLFormat(QGL::NoDepthBuffer)),
_throttleRendering(false), _throttleRendering(false),
_idleRenderInterval(64) _idleRenderInterval(MSECS_PER_FRAME_WHEN_THROTTLED)
{ {
} }