Possible to allow same SceneOptimizer to operate in either mode?

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 :slight_smile:

Well actually the way you did it is the way I was expecting it :slight_smile:
But I see no problem adding a setter (there is no setter, hence why changing it has no impact)

Yes!!

1 Like

Ha ha yes, but the way I wanted to originally was that my Optimizer would automatically toggle between modes to operate as a FPS solver to optimize (heh) the balance between quality and speed. The logic gets much more convoluted if we require a second SceneOptimizer instance due to the additional overhead of ensuring both aren’t running at the same time, etc.

That’s not to say that’s all a good original plan lol - just that it was the original :sunglasses:

I added the setter :slight_smile:

2 Likes