[Commits] [wesnoth/wesnoth] 68de9e: An attempt to improve water and lava animation per...

GitHub noreply at github.com
Wed Aug 30 06:55:25 UTC 2017


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

  Changed paths:
    M data/core/terrain-graphics.cfg
    M data/core/terrain-graphics/new-macros.cfg

  Log Message:
  -----------
  An attempt to improve water and lava animation performance

By allowing one frame's worth of random shift to the animation start times, the load of redrawing water hexes is distributed more evenly across frames instead of all water always getting redrawn in the same frame. The visual impact of having animations in adjacent hexes be one frame apart should be practically imperceptible, although visibility in screenshots might be a legitimate problem.

Transition animations are kept synced, because there can be up to six transition images on one hex so it seems safer performance-wise to draw all transitions in the same frame instead of letting them all get individually shifted.

Also increased the frame durations from 100 to 125.





More information about the Commits mailing list