docs.unity3d.com
    Show / Hide Table of Contents

    Enum OptimizeFor

    How the code should be optimized.

    Namespace: Unity.Burst
    Syntax
    public enum OptimizeFor

    Fields

    Name Description Value
    Balanced

    Optimize for balanced compilation - ensuring that good performance is obtained while keeping compile time as low as possible.

    Default

    The default optimization mode - uses Balanced.

    FastCompilation

    Optimize for fast compilation - the compiler should perform some optimization, but take as little time as possible to do it.

    Performance

    Optimize for performance - the compiler should make the most optimal binary possible.

    Size

    Optimize for size - the compiler should make the smallest binary possible.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023