This PR optimizes VanillaMode() by rewriting it as an inlined function.
While LTO does effectively turn this into an inlined function, it will not for non-LTO compiles. This will help performance for compiles for lower powered devices, as VanillaMode() is called upon many times per main loop.
This PR optimizes
VanillaMode()
by rewriting it as an inlined function.While LTO does effectively turn this into an inlined function, it will not for non-LTO compiles. This will help performance for compiles for lower powered devices, as
VanillaMode()
is called upon many times per main loop.