D29247: [effects/showfps] Calculate "correct" FPS
    Kai Uwe Broulik 
    noreply at phabricator.kde.org
       
    Tue Apr 28 10:10:18 BST 2020
    
    
  
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwin/attachments/20200428/e463ac83/attachment-0001.html>
    
    
More information about the kwin
mailing list