Skip to content
Permalink
Browse files

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)
  • Loading branch information...
nerzhul committed Mar 17, 2017
1 parent ba0a8da commit a7485e40ffbc0f2bf255ac62cc256252bcb7a048
Showing with 217 additions and 271 deletions.
  1. +217 −271 src/game.cpp

0 comments on commit a7485e4

Please sign in to comment.
You can’t perform that action at this time.