기술 자료

Unity Engine

Unity Engine

OptimizeFor

How the code should be optimized.
읽는 시간 1분최근 업데이트: 한 달 전

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.