docs.unity.cn
    Show / Hide Table of Contents

    Enum OptimizeFor

    How the code should be optimized.

    Namespace: Unity.Burst
    Syntax
    public enum OptimizeFor

    Fields

    Name Description Value
    Default

    The default optimization mode - uses Balanced.


    0
    Performance

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


    1
    Size

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


    2
    FastCompilation

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


    3
    Balanced

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


    4
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Monday, June 12, 2023