Profiling-based Optimization (Performance Mod)
Author of the mod with the same name in Victoria 3 (https://steamcommunity.com/sharedfiles/filedetails/?id=3213294110) here. The new EU5 has re-ignited my passion for Paradox games and I can’t wait to contribute to the new Meiou and Taxes project. Thus I decided to warm up my modding skills once again by trying to optimize some vanilla scripts.
It’s good to see that unlike Victoria 3, there isn’t any exceedingly bad scripts in terms of optimization: no more flags calculation every tick, no red scare or fps scare, and all that good stuff. So I decided to take the old conservative approach to optimize the scripts in a way that doesn’t change any vanilla game logic (including some questionable ones that I definitely want to change), mostly in terms of script trigger orderings.
It’s hard to say how much effect they will bring at the moment, but hey, it should be better than nothing; and with my modding skills improved (and Paradox adding new content that might introduce new performance bottlenecks), I will continue to add more stuff to this mod.