ドキュメント

Unity Engine

Unity Engine

SetPerformanceLevel(ref int, ref int)

Request a performance level change. If UnknownPerformanceLevel is passed, the subsystem picks the level to be used.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

SetPerformanceLevel(int, int)

bool SetPerformanceLevel(ref int cpu, ref int gpu)

Parameters

cpu

The new performance level. Can be UnknownPerformanceLevel or range of [MinCpuPerformanceLevel, IDevicePerformanceLevelControl.MaxCpuPerformanceLevel]. If Feature.CpuPerformanceLevel is not supported (see AdaptivePerformanceSubsystem.Capabilities), this parameter is ignored.

gpu

The new performance level. Can be UnknownPerformanceLevel or range of [MinCpuPerformanceLevel, IDevicePerformanceLevelControl.MaxGpuPerformanceLevel]. If Feature.GpuPerformanceLevel is not supported (see AdaptivePerformanceSubsystem.Capabilities), this parameter is ignored.

Returns

Type

Description

boolReturns true on success. When this fails, it means that the system took control of the active performance levels.