mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 07:14:11 +02:00
Mac-only.
This commit is contained in:
parent
8666cdd689
commit
72ce46af59
1 changed files with 7 additions and 0 deletions
|
@ -152,7 +152,14 @@ OpenGLDisplayPlugin::OpenGLDisplayPlugin() {
|
|||
});
|
||||
|
||||
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) {
|
||||
#else
|
||||
if (_active && _sceneTextureEscrow.depth() < 1) {
|
||||
#endif
|
||||
emit requestRender();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue