# XRStats

> Timing and other statistics from the XR subsystem.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.XR](/engine/6000.7/script-reference/unityengine/xr.md)
* **Assembly:** UnityEngine.XRModule

> **Warning:**
>
> **Deprecated.** UnityEngine.VRModule is deprecated and will be removed in a future version. Please use the APIs in the UnityEngine.XRModule instead

```csharp
public static class XRStats
```

## Remarks

Some XR SDKs provide access to additional timing and other statistics. These can be used by games and applications for profiling and dynamic performance adjustments. For example, modifying [\_eyeTextureResolutionScale](/engine/6000.7/script-reference/unityengine/xr/xrsettings/eyetextureresolutionscale.md) or [\_renderViewportScale](/engine/6000.7/script-reference/unityengine/xr/xrsettings/renderviewportscale.md) during runtime can improve performance. This class exposes a set of information that can be optionally reported by SDKs. Make sure to use the return values of any methods to know whether the data is being reported by the SDK or not.
