# Single Pass Stereo Rendering

### Introduction

Single Pass Stereo Rendering is an advanced rendering technique that allows a scene to be rendered in one pass for both the left and right eye views. This method is highly efficient and significantly enhances performance, particularly in scenarios such as Virtual Reality (VR) or Augmented Reality (AR) applications.

Implementing Single Pass Stereo Rendering in NRSDK primarily reduces CPU usage, while GPU performance remains largely unchanged. Using Single Pass Stereo Rendering can lead to lower battery usage and lower hardware temperatures, further enhancing the user experience and device performance.

This is especially beneficial for applications that are CPU-bound or draw call bound. We strongly recommend using Single Pass Stereo Rendering to improve performance in such cases.

### Setup

#### 1. Prerequisite

Install XR Plugin Manager

* Go to Edit -> Project Settings
* Install `XR Plugin Manager`

<figure><img src="https://content.gitbook.com/content/yXoV7SMVFQhr75lOIoQv/blobs/5dpVzei7TPJ1fF0OBQVz/0.png" alt=""><figcaption></figcaption></figure>

#### 2. Import NRSDK XR Plugin Package

{% file src="https://3927673004-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXoV7SMVFQhr75lOIoQv%2Fuploads%2FuzAunmw3cIvTjYlcIsma%2Fcom.nreal.xr.zip?alt=media&token=aed269c3-94a0-45dc-bed8-d607c01d937c" %}

* Unzip the `com.xreal.xr.zip` file to a local directory;&#x20;
* In the editor, go to the "Windows -> Package Manager" menu bar, click "<mark style="color:purple;">**+**</mark>", select "`Add package from disk`", and add the `package.json` from the local directory.

<figure><img src="https://content.gitbook.com/content/yXoV7SMVFQhr75lOIoQv/blobs/lpTkFEgqTosBuiGysnrH/1.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/yXoV7SMVFQhr75lOIoQv/blobs/ChJKq9RoAX2nTZUvsZl9/2.png" alt=""><figcaption></figcaption></figure>

#### 3. Configure XREAL XR Plugin

* Go to "Edit -> Project Settings -> XR Plug-in Management" and check the "NRSDK" option;

<figure><img src="https://content.gitbook.com/content/yXoV7SMVFQhr75lOIoQv/blobs/XcUpuK7EPcv2mIOTcOCW/3.png" alt=""><figcaption></figcaption></figure>

* Go to "Edit -> Project Settings -> XR Plug-in Management -> NRSDK", switch the StereoRenderingMode to `Multiview`, and the XRPlugin configuration is complete.

<figure><img src="https://content.gitbook.com/content/yXoV7SMVFQhr75lOIoQv/blobs/tvE18AlByHj5zFdNQ429/4.png" alt=""><figcaption></figcaption></figure>

### Additional technical documentation

To understand Single Pass Stereo rendering in detail, go to [Single Pass Stereo Rendering](https://docs.unity3d.com/Manual/SinglePassStereoRendering.html) topics in Unity’s documentation.

