diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-03-17 22:15:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-17 22:15:25 +0100 |
commit | a7485e40ffbc0f2bf255ac62cc256252bcb7a048 (patch) | |
tree | f2938660f7774df8f96961afda53b687644edc95 /src/script/lua_api/l_inventory.h | |
parent | ba0a8dabeff92ecd87d28b4b5b4010e958be5851 (diff) | |
download | minetest-a7485e40ffbc0f2bf255ac62cc256252bcb7a048.tar.gz minetest-a7485e40ffbc0f2bf255ac62cc256252bcb7a048.tar.bz2 minetest-a7485e40ffbc0f2bf255ac62cc256252bcb7a048.zip |
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)
Diffstat (limited to 'src/script/lua_api/l_inventory.h')
0 files changed, 0 insertions, 0 deletions