Mac-only.

This commit is contained in:
Howard Stearns 2015-12-07 11:46:36 -08:00
parent 8666cdd689
commit 72ce46af59

View file

@ -152,7 +152,14 @@ OpenGLDisplayPlugin::OpenGLDisplayPlugin() {
}); });
connect(&_timer, &QTimer::timeout, this, [&] { connect(&_timer, &QTimer::timeout, this, [&] {
#ifdef Q_OS_MAC
// On Mac, QT thread timing is such that we can miss one or even two cycles quite often, giving a render rate (including update/simulate)
// far lower than what we want. This hack keeps that rate more natural, at the expense of some wasted rendering.
// This is likely to be mooted by further planned changes.
if (_active && _sceneTextureEscrow.depth() <= 1) { if (_active && _sceneTextureEscrow.depth() <= 1) {
#else
if (_active && _sceneTextureEscrow.depth() < 1) {
#endif
emit requestRender(); emit requestRender();
} }
}); });