[Commits] [wesnoth/wesnoth] 753403: Based the FPS counter's displayed value on the lon...

GitHub noreply at github.com
Tue Aug 29 19:11:10 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 7534038e485976f35ab8a20b791816a455138c8e
      https://github.com/wesnoth/wesnoth/commit/7534038e485976f35ab8a20b791816a455138c8e
  Author: ln-zookeeper <lari.nieminen at iki.fi>
  Date:   2017-08-29 (Tue, 29 Aug 2017)

  Changed paths:
    M src/display.cpp

  Log Message:
  -----------
  Based the FPS counter's displayed value on the longest frametime

The previous behavior caused the counter to often display a very high FPS value due to an occasional long frame causing the delay between following frames to be very short. This commit makes the FPS counter more useful and intuitive for benchmarking purposes by calculating the displayed value based on the longest of the sampled frametimes.





More information about the Commits mailing list