platformsupport/scenes/openglbackend: increase GPU reset timeout again

Apparently it can take a while in some cases, so this commit increases the
timeout to 10s
This commit is contained in:
Xaver Hugl 2023-11-23 17:36:41 +01:00
parent 477102f6bc
commit 985f0edf88

View file

@ -83,10 +83,10 @@ bool OpenGLBackend::checkGraphicsReset()
timer.start();
// Wait until the reset is completed or max one second
while (timer.elapsed() < 1000 && KWin::glGetGraphicsResetStatus() != GL_NO_ERROR) {
while (timer.elapsed() < 10000 && KWin::glGetGraphicsResetStatus() != GL_NO_ERROR) {
usleep(50);
}
if (timer.elapsed() >= 1000) {
if (timer.elapsed() >= 10000) {
qCWarning(KWIN_OPENGL) << "Waiting for glGetGraphicsResetStatus to return GL_NO_ERROR timed out!";
}