Skip to content

Add more constants to Globalize

NerduMiner requested to merge nerdyminer18/srb2p-public:globalize-more into next

lib_getenum is a strange and confuddling function, so now that there is headway into bypassing it, I want to add more constants that I discovered were actively processed by this function during general gameplay but weren't yet globalized. This includes two states(S_RING and S_SPRK3) which were abhorrently spammy in my logs. With what's currently pushed and proposed to the official repositories, the only way to lower lib_getenum overhead more now, in my opinion, is to provide a fast path for special variables like server and gamemap inside the executable, which are far and above the constants with the most processing time in lib_getenum. I have an edit on my end that assists with this, so I may create a fork of the exe code to make an MR for it soon.

Merge request reports

Loading