I can pull up an example from optimizing the Crusader Kings II recently. The statistics were quite incredible and I will take out a slice of 2 000 characters in the game, these people together were running about 1.4 million events triggers between them every day. If you scale that up to the full population of 40 000 it becomes 28 million triggers that would be run every daily tick. So we do have quite a performance demand when it comes to our scripts.



I think more rather than replacing the script language with something external language we should focus on developing and improving the current language we have. It does the job, it does it well and it is really required with the demands we have on our language. And as you see in almost every patch to CK2 and EU4 the script language is given more and more tools without a loss of performance. I think it was in the Sons of Abraham patch that we added a runtime optimizer to CK2's Pdxscript to try and organize triggers to be more efficent if the scripter failed to do so himself and that is a feature that modern compilers today have.



PS: Compiling our scripts aren't really that demanding actually, it goes really quickly. The loading times are because of the sheer amount of data we process.