Commit 97273e69 authored by Laszlo Agocs's avatar Laszlo Agocs
Browse files

Go back to requestUpdate on all Apple

i.e. CVDisplayLink
parent b4a1ce02
......@@ -392,23 +392,14 @@ void Window::render()
// There should be no need to rely on requestUpdate(). Outside Apple that's
// a 5 ms timer, otherwise backed by CVDisplayLink but for Metal we do not
// need that either, on macOS at least. For iOS/tvOS however, or when using
// OpenGL on Apple, continue to use requestUpdate.
bool useRequestUpdate = false;
#ifdef Q_OS_DARWIN
#if defined(Q_OS_IOS) || defined(Q_OS_TVOS)
useRequestUpdate = true;
if (graphicsApi == OpenGL)
useRequestUpdate = true;
if (useRequestUpdate)
if (!scFlags.testFlag(QRhiSwapChain::NoVSync))
requestUpdate(); // CVDisplayLink (not strictly needed on macOS with Metal)
QCoreApplication::postEvent(this, new QEvent(QEvent::UpdateRequest));
QCoreApplication::postEvent(this, new QEvent(QEvent::UpdateRequest));
int main(int argc, char **argv)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment