Diffusion KWin 2e4d6b243f93

scene: Improve the time diff calculation

Authored by fredrik on May 19 2019, 10:44 AM.

Description

scene: Improve the time diff calculation

This code only accounted for the time that elapsed between the previous
and the current render passes, as opposed to the interval between the
expected presentation times of the frames. This had the effect of making
animations look erratic even when kwin was consistently rendering at the
monitor refresh rate, since render passes can happen at random points
in the interval between two vblanks.

This commit fixes this by adding a Scene::setNextExpectedPresentTime(),
and using the provided timestamp to compute the time diff.

Details

Committed
fredrikJul 21 2019, 10:48 AM
Parents
R108:2e737e1463a5: Schedule repaints using presentation timestamps
Branches
Unknown
Tags
Unknown