D29247: [effects/showfps] Calculate "correct" FPS

Kai Uwe Broulik <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
broulik added inline comments.

INLINE COMMENTS

> showfps.cpp:126
>  {
> -    frames[ frames_pos ] = t.restart();
> +    frames[ frames_pos ] = QDateTime::currentMSecsSinceEpoch();
>      if (++frames_pos == MAX_FPS)

Can you not store the current time of the timer rather than going through `QDateTime`?

REPOSITORY
  R108 KWin

REVISION DETAIL
  https://phabricator.kde.org/D29247

To: zzag, #kwin
Cc: broulik, kwin, Orage, cacarry, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.