[Commits] [wesnoth/wesnoth] 48bcb2: Refactor calls to CVideo::flip()

GitHub noreply at github.com
Wed Oct 26 07:39:23 UTC 2016


  Branch: refs/heads/renderpath_redo_new
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 48bcb277d420309e792aa30e0d782b81dd5cced7
      https://github.com/wesnoth/wesnoth/commit/48bcb277d420309e792aa30e0d782b81dd5cced7
  Author: Andreas Löf <andreas at alternating.net>
  Date:   2016-10-26 (Wed, 26 Oct 2016)

  Changed paths:
    M src/construct_dialog.cpp
    M src/controller_base.cpp
    M src/editor/controller/editor_controller.cpp
    M src/events.cpp
    M src/events.hpp
    M src/game_initialization/multiplayer.cpp
    M src/gui/core/event/handler.cpp
    M src/gui/widgets/window.cpp
    M src/help/help.cpp
    M src/hotkey/hotkey_preferences_display.cpp
    M src/intro.cpp
    M src/storyscreen/render.cpp
    M src/wesnoth.cpp

  Log Message:
  -----------
  Refactor calls to CVideo::flip()

This adds a timer in the SDL event queue that fires every 20ms in order to add a draw event into the queue.
After the draw event has been processed by all listener, a call to CVideo::flip() is made. All other calls to CVideo::flip() have been removed.

This is the first step towards simplifying the rendering path and making sure the screen is in a consistent state when the flip() call is made.
Having the screen in a consistent state will resolve flickering.

This incidentally also fixes resizing in load screens by always blanking them and doing a full re-render.





More information about the Commits mailing list