From 985f0edf886ba1d7a3061c65142fa66c04965e40 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Thu, 23 Nov 2023 17:36:41 +0100 Subject: [PATCH] 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 --- src/platformsupport/scenes/opengl/openglbackend.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platformsupport/scenes/opengl/openglbackend.cpp b/src/platformsupport/scenes/opengl/openglbackend.cpp index 482555207f..92ca501d96 100644 --- a/src/platformsupport/scenes/opengl/openglbackend.cpp +++ b/src/platformsupport/scenes/opengl/openglbackend.cpp @@ -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!"; }