kwin/effects/showfps
Vlad Zahorodnii 1dd3c7e8ba [effects/showfps] Calculate "correct" FPS
Summary:
cca0e15b45 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
2020-05-07 09:17:02 +03:00
..
CMakeLists.txt Reduce the amount of objects that are compiled several times 2020-04-02 00:41:55 +02:00
showfps.cpp [effects/showfps] Calculate "correct" FPS 2020-05-07 09:17:02 +03:00
showfps.h [effects/showfps] Calculate "correct" FPS 2020-05-07 09:17:02 +03:00
showfps.kcfg [effects] Use arg="true" in the kcfg files 2017-04-15 10:03:34 +02:00
showfps_config.cpp [effects] Use arg="true" in the kcfg files 2017-04-15 10:03:34 +02:00
showfps_config.desktop SVN_SILENT made messages (.desktop file) - always resolve ours 2020-03-27 06:43:00 +01:00
showfps_config.h Use nullptr everywhere 2019-09-19 17:48:21 +03:00
showfps_config.ui Use KConfigXT in ShowFps Effect 2012-09-14 10:39:27 +02:00
showfpsconfig.kcfgc Use KConfigXT in ShowFps Effect 2012-09-14 10:39:27 +02:00