|
|
|
|
|
|
} |
|
|
|
|
|
|
|
static void defaultFrameRateSpeedUp() { |
|
|
|
#if UNITY_2019_3
|
|
|
|
#if UNITY_2019_3_OR_NEWER
|
|
|
|
OnDemandRendering.renderFrameInterval = defaultMinRenderFrameInterval; |
|
|
|
#else
|
|
|
|
Application.targetFrameRate = defaultMaxTargetFrameRate; |
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
static void defaultFrameRateCoolDown() { |
|
|
|
#if UNITY_2019_3
|
|
|
|
#if UNITY_2019_3_OR_NEWER
|
|
|
|
OnDemandRendering.renderFrameInterval = defaultMaxRenderFrameInterval; |
|
|
|
#else
|
|
|
|
Application.targetFrameRate = defaultMinTargetFrameRate; |
|
|
|