Using "Optimization Level"

I often use “Optimization Level” without problem because my apps use a lot of math and they run much faster.
But my question is:
Can I know which is the Optimization Level in my app by code?
If you know how to do it, could you tell me? Thanks.

Yes. You can use a pre-build script to copy the value into a constant

ConstantValue("Module1.kOptimationLevel") = PropertyValue("App.OptimizationLevel")


  • // 0 = Default
  • // 4 = Aggressive
  • // 6 = Moderate

Note: you need to create the corresponding constant yourself.

Thank you. I will try to do it.