Use the default Qt render loop
Since we stopped pumping the event loop manually and switched to EGL on X11, the default threaded render loop seems to work fine now.
This commit is contained in:
parent
d40999ce06
commit
f57257cbfd
1 changed files with 0 additions and 12 deletions
12
app/main.cpp
12
app/main.cpp
|
|
@ -497,18 +497,6 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(Q_OS_WIN32) || QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
|
||||||
// Moonlight requires the non-threaded renderer because we depend
|
|
||||||
// on being able to control the render thread by blocking in the
|
|
||||||
// main thread (and pumping events from the main thread when needed).
|
|
||||||
// That doesn't work with the threaded renderer which causes all
|
|
||||||
// sorts of odd behavior depending on the platform.
|
|
||||||
//
|
|
||||||
// NB: Windows defaults to the "windows" non-threaded render loop on
|
|
||||||
// Qt 5 and the threaded render loop on Qt 6.
|
|
||||||
qputenv("QSG_RENDER_LOOP", "basic");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(Q_OS_DARWIN) && defined(QT_DEBUG)
|
#if defined(Q_OS_DARWIN) && defined(QT_DEBUG)
|
||||||
// Enable Metal valiation for debug builds
|
// Enable Metal valiation for debug builds
|
||||||
qputenv("MTL_DEBUG_LAYER", "1");
|
qputenv("MTL_DEBUG_LAYER", "1");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue