Has anyone tried benchmarking or optimizing the event interpreter?
It's a major part of any game after all.
I completely rewrote it. Does that count?
Yes. How big of an improvement did you get?
Performance-wise, not much of one -- sanity-wise, I gained a lot. The performance of Game_Interpreter never struck me as tremendously awful in the first place... it was the design of it that really bothered me. What I did was essentially change it from one gigantic, monolithic class into a relatively simple composite. I abstracted out the event commands into separate classes derived from a common class, then basically had the interpreter run through those various event commands. The code for the actual interpreter was much smaller as a result, and being able to modify event commands became much simpler.
Unfortunately, that's exactly the kind of script that no one else would use, though -- that kind of design wasn't implemented by default. Regular users wouldn't see much benefit, and other scripters would simply work with what was given to them rather than use something that someone else wrote which wasn't strictly necessary to begin with.
Nice one solistra. Sanity wise lol. I Like your style 😛 .