⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

Renderer.ViewportScaling

static float ViewportScaling{ get set }

Description

This allows you to trivially scale down the area of the swapchain that StereoKit renders to! This can be used to boost performance in situations where full resolution is not needed, or to reduce GPU time. Unlike Scaling, this doesn’t resize the render surface, so it’s cheap enough to change every frame. In the Simulator and Window app modes, the first drop below 1 does allocate a surface to present through, but it’s kept around after that. This value is locked to the 0-1 range.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!