core: use the simple animation driver

Seems to provide much higher quality animations.
This commit is contained in:
outfoxxed 2024-05-28 20:22:01 -07:00
parent 7ad3671dd1
commit 33fac67798
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -326,6 +326,13 @@ int qs_main(int argc, char** argv) {
qputenv(var.toUtf8(), val.toUtf8()); qputenv(var.toUtf8(), val.toUtf8());
} }
// The simple animation driver seems to work far better than the default one
// when more than one window is in use, and even with a single window appears
// to improve animation quality.
if (!qEnvironmentVariableIsSet("QSG_USE_SIMPLE_ANIMATION_DRIVER")) {
qputenv("QSG_USE_SIMPLE_ANIMATION_DRIVER", "1");
}
QGuiApplication::setDesktopSettingsAware(desktopSettingsAware); QGuiApplication::setDesktopSettingsAware(desktopSettingsAware);
QGuiApplication* app = nullptr; QGuiApplication* app = nullptr;