godot/scene
Pedro J. Estébanez 665bf52948 Optimize-out some debug and/or non-tools methods
Collisions and nav debug are conditionally compiled depending on DEBUG_ENABLED
is_editor_hint() and is_node_being_edited() are compiled only with TOOLS_ENABLED
Every affected method is implemented in the header in case its macro is not present (the getters just returning false and the setters having an empty body) so the compiler can inline and finally no-op-out them as likely as possible.
is_node_being_edited() already showed a similar optimization effort and has been adapted to this change.
Furthermore, and as a consequence, -debugcol and -debugnav will not work on non-debug (strict release) builds.
This can bring a little bit of runtime performance on release and non-tooled builds (less code, so less cycles to spend and maybe more cache friendly).
2017-04-07 16:35:55 +02:00
..
2d Fix typos in source code using codespell 2017-03-24 21:45:31 +01:00
3d A Whole New World (clang-format edition) 2017-03-05 16:44:50 +01:00
animation Honor the Tween's final values 2017-03-30 07:58:20 -03:00
audio A Whole New World (clang-format edition) 2017-03-05 16:44:50 +01:00
gui Fix typos in source code using codespell 2017-03-24 21:45:31 +01:00
io Fix typos in source code using codespell 2017-03-24 21:45:31 +01:00
main Optimize-out some debug and/or non-tools methods 2017-04-07 16:35:55 +02:00
resources Merge pull request #8130 from volzhs/cache-font-master 2017-03-24 22:52:36 +01:00
register_scene_types.cpp A Whole New World (clang-format edition) 2017-03-05 16:44:50 +01:00
register_scene_types.h Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
scene_string_names.cpp fixed ClassDB inconsistencies 2017-03-13 21:17:31 +01:00
scene_string_names.h fixed ClassDB inconsistencies 2017-03-13 21:17:31 +01:00
SCsub style: Various other PEP8 fixes in Python files 2016-11-01 00:35:16 +01:00