Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


OptimizeFor

How the code should be optimized.
Read time 1 minuteLast updated 11 days ago

Definition

  • Type: Enum
  • Namespace: Unity.Burst
  • Assembly: UnityEngine.BurstModule
public enum OptimizeFor

Fields

Value

Description

BalancedOptimize for balanced compilation - ensuring that good performance is obtained while keeping compile time as low as possible.
DefaultThe default optimization mode - uses OptimizeFor.Balanced.
FastCompilationOptimize for fast compilation - the compiler should perform some optimization, but take as little time as possible to do it.
PerformanceOptimize for performance - the compiler should make the most optimal binary possible.
SizeOptimize for size - the compiler should make the smallest binary possible.