mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 14:16:36 +02:00
Add variable name for throttled frame rate, change to multiple of 60FPS
This commit is contained in:
parent
ab05e4ba69
commit
3e1bf7fbb8
1 changed files with 3 additions and 1 deletions
|
@ -13,9 +13,11 @@
|
|||
#include <QUrl>
|
||||
#include <QMainWindow>
|
||||
|
||||
const int MSECS_PER_FRAME_WHEN_THROTTLED = 66;
|
||||
|
||||
GLCanvas::GLCanvas() : QGLWidget(QGLFormat(QGL::NoDepthBuffer)),
|
||||
_throttleRendering(false),
|
||||
_idleRenderInterval(64)
|
||||
_idleRenderInterval(MSECS_PER_FRAME_WHEN_THROTTLED)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue