Interface IVariableRefreshRateSimulator
Interface of the Samsung Variable Refresh Rate API for use with the Device Simulator.
Inherited Members
Namespace: UnityEditor.AdaptivePerformance.Simulator.Editor
Assembly: Unity.AdaptivePerformance.Simulator.VRR.Extension.dll
Syntax
public interface IVariableRefreshRateSimulator : IVariableRefreshRate
Methods
GetCurrentRefreshRate()
Gets the simulated display refresh rate.
Declaration
int GetCurrentRefreshRate()
Returns
| Type | Description |
|---|---|
| int | The simulated display refresh rate. |
GetSettings()
Gets the simulated Android Provider Settings.
Declaration
VRRSettings GetSettings()
Returns
| Type | Description |
|---|---|
| VRRSettings | The simulated Android Provider Settings. |
SetAndroidDisplayRefreshRateMode(AndroidDisplayRefreshRate)
Sets the simulated display refresh mode.
Declaration
void SetAndroidDisplayRefreshRateMode(AndroidDisplayRefreshRate rate)
Parameters
| Type | Name | Description |
|---|---|---|
| AndroidDisplayRefreshRate | rate | The display mode to set. |
SetRefreshRate(int)
Sets the simulated display refresh rate.
Declaration
void SetRefreshRate(int targetRefreshRate)
Parameters
| Type | Name | Description |
|---|---|---|
| int | targetRefreshRate | The display refresh rate to set. |
SetSettings(VRRSettings)
Sets the simulated Android Provider Settings.
Declaration
void SetSettings(VRRSettings vrrSettings)
Parameters
| Type | Name | Description |
|---|---|---|
| VRRSettings | vrrSettings | The simulated Android Provider Settings |