Just food for thought. A way to automate this (some lua startscript) would be cool.
BTW first post here

Yeah, the cost of generating the profile data, the manual intervention and the double compile is way to high to start using it if it doesn't give at least 5, or even 10% improvement.imbaczek wrote:Try add some air combat to that, aircraft due to their speed update LOS frequently and I'd expect biggest improvement there. If it's not more than 5%, I guess we can abandon the idea for now.
I find it pretty strange, all other compilation options where identical... but well, I could easily recompile the failing files without -fprofile-use and link them with the rest of the code.Coverage mismatches could happen due to the way stuff is inlined with and without profile data... just a guess.
I didn't notice any differences in my test demos. Would have to be tested a bit more though, but since optimization level doesn't matter either I would be surprised if PDO does matter.Also I wonder whether profile-optimized and normal build will stay in sync. This may be a problem for Linux players who build the game themselves or use a unofficial repository.