[Commits] [wesnoth/wesnoth] f4b700: Use move schematics to reduce copies when populati...

GitHub noreply at github.com
Fri Jun 16 02:10:26 UTC 2017


  Branch: refs/heads/accelerated_rendering
  Home:   https://github.com/wesnoth/wesnoth
  Commit: f4b700e55fa0608b2fbd77311c714728d04f23cc
      https://github.com/wesnoth/wesnoth/commit/f4b700e55fa0608b2fbd77311c714728d04f23cc
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-06-16 (Fri, 16 Jun 2017)

  Changed paths:
    M src/image.cpp

  Log Message:
  -----------
  Use move schematics to reduce copies when populating surface or texture caches

The surface and texture wrappers are rather light, but (at least in the case of texture), the sheer
number of times they're called could cause CPU strain when constructing new shared_ptrs.





More information about the Commits mailing list