[Commits] [wesnoth/wesnoth] b73e8d: GUI2/Window: don't constantly send useless DRAW ev...

GitHub noreply at github.com
Mon Nov 27 23:38:41 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: b73e8dd73fb2edcebcdd87ca506daaf68f6af534
      https://github.com/wesnoth/wesnoth/commit/b73e8dd73fb2edcebcdd87ca506daaf68f6af534
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-11-28 (Tue, 28 Nov 2017)

  Changed paths:
    M src/gui/widgets/window.cpp

  Log Message:
  -----------
  GUI2/Window: don't constantly send useless DRAW events to the queue

This is a small subset of a change made on accelerated_rendering. Essentially, since drawing
doesn't happen until events::pump is called, and that function also drops all but one DRAW
event from the queue, sending a DRAW event every 20 ms is just useless noise and excessive
CPU use.

There should be no change in the actual rate GUI2 dialogs are redrawn with this change.





More information about the Commits mailing list