D18656: [wayland] Send correct current time in the frame callback
Vlad Zagorodniy <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kwin |
|---|---|
| Message-ID | <[email protected]> |
zzag created this revision. zzag added a reviewer: KWin. Herald added a project: KWin. Herald added a subscriber: kwin. zzag requested review of this revision. REVISION SUMMARY Currently, each frame callback sent by KWin has the current time in nanoseconds, but the protocol spec states that we have to send the time in milliseconds. Also, it's worth to mention that m_timeSinceStart isn't actually "time since start," it's rather accumulated duration of all painting cycles. If there is something to draw and it takes quite a while to compose the scene, maybe m_timeSinceStart will be close enough to the current time. TEST PLAN The triangle in weston-subsurfaces no longer spins very fast. REPOSITORY R108 KWin BRANCH send-correct-time-in-frame-callback REVISION DETAIL https://phabricator.kde.org/D18656 AFFECTED FILES composite.cpp composite.h To: zzag, #kwin Cc: kwin, jraleigh, GB_2, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, ngraham, alexeymin, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart