Currently, when you create a SceneOptimizer, you must specify whether isInImprovementMode = true (default) or not. After creation, this property can be read and even set, but changing it doesn’t seem to have an effect.
To get around that, I ended up creating two separate SceneOptimizer objects to juggle improvements and optimizations. Ideally though, I would like to have my custom optimizer logic able to toggle between modes… although to be honest I haven’t thought this all the way through and I feel like there’s some giant reasons Why That’s A Bad Idea, but that’s Also Why We Have This Forum!
P.S. – the caps are in homage to Sir Terry Pratchett… was thinking of him a bit earlier