https://bugs.kde.org/show_bug.cgi?id=481721
Vlad Zahorodnii <vlad.zahorod...@kde.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Latest Commit| |https://invent.kde.org/plas | |ma/kwin/-/commit/0dc3f4906f | |d7cdaaeb740b2b29213acd5d298 | |9fa Resolution|--- |FIXED --- Comment #17 from Vlad Zahorodnii <vlad.zahorod...@kde.org> --- Git commit 0dc3f4906fd7cdaaeb740b2b29213acd5d2989fa by Vlad Zahorodnii. Committed on 29/02/2024 at 17:58. Pushed by vladz into branch 'master'. opengl: Harden GLRenderTimeQuery against opengl providing bad timestamps The end render timestamp can be slightly in the past before the start render timestamp. This results in negative render times, which can make kwin wait way more than just one vblank interval before starting the next frame. It appears that there is no way to detect if the gpu has performed a disjoint operation in OpenGL. It's available only in GLES. As a way around, this change makes the GLRenderTimeQuery insert two probes: one queries gl timestamps when starting rendering and ending rendering; another one just queries std::steady_clock before and after painting. This hardens the GLRenderTimeQuery against OpenGL providing nonsensical results sometimes. M +19 -23 src/opengl/glrendertimequery.cpp M +13 -3 src/opengl/glrendertimequery.h https://invent.kde.org/plasma/kwin/-/commit/0dc3f4906fd7cdaaeb740b2b29213acd5d2989fa -- You are receiving this mail because: You are watching all bug changes.