Property matchFrameRateRequested
matchFrameRateRequested
If true
, the session will block execution until a new AR frame is available and set
Application.targetFrameRate
to match the native update frequency of the AR session.
Otherwise, the AR session is updated independently of the Unity frame.
Declaration
public bool matchFrameRateRequested { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
If enabled with a simple scene, the ARSession.Update
might appear to take a long time.
This is because your application is waiting for the next AR frame, similar to the way Unity will WaitForTargetFPS
at the
end of a frame. If the rest of the Unity frame takes non-trivial time, then the next ARSession.Update
will take a proportionally smaller amount of time.
This option does three things:
- Enables a setting on the XRSessionSubsystem which causes the update to block until the next AR frame is ready.
- Sets Application.targetFrameRate to the session's preferred update rate.
- Sets QualitySettings.vSyncCount to zero.
These settings are not reverted when the AR Session is disabled.