nukeykt / NBlood

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

Blood: Inline VanillaMode() #810

Closed tmyqlfpir closed 6 months ago

tmyqlfpir commented 6 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.