From f665dda192f4e7142df7f16dc0e55b780ece9406 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 15 Jan 2024 16:20:28 +0200 Subject: [PATCH] scene: Remove warning message about older presentation timestamps Outputs present frames at different pace, some can present new content later, some sooner. If the scene gets a slightly older presentation timestamp, it's okay. --- src/scene/workspacescene.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/scene/workspacescene.cpp b/src/scene/workspacescene.cpp index bb37238e8b..3535b65a9c 100644 --- a/src/scene/workspacescene.cpp +++ b/src/scene/workspacescene.cpp @@ -238,12 +238,7 @@ QRegion WorkspaceScene::prePaint(SceneDelegate *delegate) const std::chrono::milliseconds presentTime = std::chrono::duration_cast(renderLoop->nextPresentationTimestamp()); - if (Q_UNLIKELY(presentTime < m_expectedPresentTimestamp)) { - qCDebug(KWIN_CORE, - "Provided presentation timestamp is invalid: %lld (current: %lld)", - static_cast(presentTime.count()), - static_cast(m_expectedPresentTimestamp.count())); - } else { + if (presentTime > m_expectedPresentTimestamp) { m_expectedPresentTimestamp = presentTime; }