]> git.lizzy.rs Git - dragonfireclient.git/commit
Reduce memory & function cost of Game class functions (#5406)
authorLoïc Blot <nerzhul@users.noreply.github.com>
Fri, 17 Mar 2017 21:15:25 +0000 (22:15 +0100)
committerGitHub <noreply@github.com>
Fri, 17 Mar 2017 21:15:25 +0000 (22:15 +0100)
commita7485e40ffbc0f2bf255ac62cc256252bcb7a048
treef2938660f7774df8f96961afda53b687644edc95
parentba0a8dabeff92ecd87d28b4b5b4010e958be5851
Reduce memory & function cost of Game class functions (#5406)

GameRunData is passed on many game functions, or one of its attributes whereas it's a member of the class. Remove it from functions arguments and call object directly from concerned functions.
This will reduce a little bit the Game class loop usage & very little bit the memory usage (due to non creation of pointer/references)
src/game.cpp