Diffusion KWin 1dd3c7e8ba03

[effects/showfps] Calculate "correct" FPS

Authored by zzag on Apr 28 2020, 7:39 AM.

Description

[effects/showfps] Calculate "correct" FPS

Summary:
cca0e15b455ba6 broke code that calculates the value of the fps counter.

The frames field stores timestamps of previous frames, not time between
each two consecutive frames.

This change doesn't attempt to make the show fps compute more accurate
performance metrics, e.g. how much times it takes to execute rendering
commands on the GPU, etc.

Test Plan: The Show FPS effect displays more sensible values.

Reviewers: KWin, davidedmundson

Reviewed By: KWin, davidedmundson

Subscribers: davidedmundson, broulik, kwin

Tags: KWin

Differential Revision: https://phabricator.kde.org/D29247

Details

Committed
zzagMay 7 2020, 6:17 AM
Reviewer
KWin
Differential Revision
D29247: [effects/showfps] Calculate "correct" FPS
Parents
R108:e38a241048ed: scripting: Make workspace.currentActivity writable
Branches
Unknown
Tags
Unknown