[Commits] [wesnoth/wesnoth] f5a5f6: SDL/Window: set render scaling method to linear

GitHub noreply at github.com
Tue May 30 12:29:58 UTC 2017


  Branch: refs/heads/accelerated_rendering
  Home:   https://github.com/wesnoth/wesnoth
  Commit: f5a5f6c37456cd7a26a8f19b3ece164205bb3ab6
      https://github.com/wesnoth/wesnoth/commit/f5a5f6c37456cd7a26a8f19b3ece164205bb3ab6
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-05-30 (Tue, 30 May 2017)

  Changed paths:
    M src/sdl/window.cpp

  Log Message:
  -----------
  SDL/Window: set render scaling method to linear

This looks better than NN scaling (default);


  Commit: 6309ea3ef25169b56ae2400e23939c12f73279c7
      https://github.com/wesnoth/wesnoth/commit/6309ea3ef25169b56ae2400e23939c12f73279c7
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-05-30 (Tue, 30 May 2017)

  Changed paths:
    M src/video.cpp

  Log Message:
  -----------
  Video: enabled accelerated rendering with texture target access


  Commit: 145841bac2243ea0f11e13789ef348e8ab1d7c12
      https://github.com/wesnoth/wesnoth/commit/145841bac2243ea0f11e13789ef348e8ab1d7c12
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-05-30 (Tue, 30 May 2017)

  Changed paths:
    M data/gui/widget/button_default.cfg
    M src/gui/core/canvas.cpp
    M src/gui/core/canvas.hpp
    M src/gui/core/canvas_private.hpp
    M src/gui/core/event/handler.cpp
    M src/gui/widgets/widget.cpp
    M src/gui/widgets/window.cpp

  Log Message:
  -----------
  GUI2/Canvas: [WIP] refactor surface blitting out of drawing routines

This entirely refactors surface blitting out of the canvas. Instead, each canvas owns a texture. This texture
is completely redrawn any time the canvas if marked dirty, else the result is cached and drawn to the screen
each draw cycle.

All windows are now redrawn every draw cycle. The use of the cached canvas textures means there's no noticeable
performance difference (likely a performance gain, actually) from using surface blitting.

There's still some code to clean up and a few things to fix, which is why this is marked WIP.


Compare: https://github.com/wesnoth/wesnoth/compare/cf45c6798f04...145841bac224


More information about the Commits mailing list