Skip to main content
August 6, 2019

UnityEngine.XR.XRSettings.eyeTextureHeight does not match my device resolution

Hi,
I'm developing with an standard Oculus Rift, which has a resolution of 2160x1200.
But when I look for the value of UnityEngine.XR.XRSettings.eyeTextureHeight it says that it is 1600.
The eyeTextureResolutionScale is set to 1, so I expected to have an eyeTextureHeight of 1200 (the actual height of the device * eyeTextureResolutionScale).

Could someone help me with that?

Thanks

This topic has been closed for replies.

1 reply

August 10, 2019
That's normal, the Rift renders at a higher resolution than the screen so it can warp the image for the lenses without losing detail.  By default it renders at about 1.4x the device resolution.  Setting the eyeTextureResolutionScale multiplies on top of this 1.4.  None of the Oculus devices actually set the render resolution the same as the screen resolution, the mobile devices have lower render targets than the screens to help with performance.