Property matchFrameRateRequested
matchFrameRateRequested
If true
, the session will block execution until a new AR frame is available and set
Application.
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 XRSession
Subsystem which causes the update to block until the next AR frame is ready. - Sets Application.
target to the session's preferred update rate.Frame Rate - Sets Quality
Settings. to zero.vSync Count
These settings are not reverted when the AR Session is disabled.