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.
This commit is contained in:
Vlad Zahorodnii 2024-01-15 16:20:28 +02:00
parent af39179446
commit f665dda192

View file

@ -238,12 +238,7 @@ QRegion WorkspaceScene::prePaint(SceneDelegate *delegate)
const std::chrono::milliseconds presentTime =
std::chrono::duration_cast<std::chrono::milliseconds>(renderLoop->nextPresentationTimestamp());
if (Q_UNLIKELY(presentTime < m_expectedPresentTimestamp)) {
qCDebug(KWIN_CORE,
"Provided presentation timestamp is invalid: %lld (current: %lld)",
static_cast<long long>(presentTime.count()),
static_cast<long long>(m_expectedPresentTimestamp.count()));
} else {
if (presentTime > m_expectedPresentTimestamp) {
m_expectedPresentTimestamp = presentTime;
}