nukeykt / NBlood

Reverse-engineered ports of Build games using EDuke32 engine technology and development principles (NBlood/Rednukem/PCExhumed)
598 stars 74 forks source link

Blood: Inline VanillaMode() #810

Closed tmyqlfpir closed 3 months ago

tmyqlfpir commented 3 months ago

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.