VRHow / All sections / VR How-To Guides / How does VR work?

How does VR work?

Last checked October 11, 2026.

VR works by combining a stereoscopic display, head-tracking sensors, a runtime software layer, and an application that continuously re-renders the virtual scene from the user's updated viewpoint. Every component must work in synchrony: if any single link in the chain introduces significant delay or loses track of head position, the experience becomes uncomfortable or breaks entirely.

1. Display and optics: what you see

The foundation of any VR headset is a close-focus display system. Modern headsets use one of two primary lens designs:

Both designs project a separate left-eye and right-eye image, offset horizontally to match the user's interpupillary distance (IPD). Your brain fuses these two slightly different perspectives into a single image with perceived depth. This stereoscopic rendering is the fundamental trick that creates the sense of presence inside a virtual space.

Displays are typically OLED (organic LED, offering deep blacks and fast pixel response) or LCD/fast-switch LCD. Refresh rates range from 72 Hz on budget devices to 120 Hz or 144 Hz on high-end headsets. A higher refresh rate reduces the stroboscopic flicker that contributes to eye fatigue during long sessions.

2. Head tracking: knowing where you are looking

The headset must know the orientation and, for room-scale use, the position of the user's head many times per second. Two broad tracking architectures exist:

Inertial Measurement Units (IMUs), consisting of accelerometers and gyroscopes, supplement camera-based tracking by providing high-frequency orientation updates between camera frames. IMU data is fused with vision data to produce smooth, low-latency pose estimates. IMU alone provides orientation (3DOF) but drifts over time and cannot provide absolute position without an external reference.

Controller tracking works the same way: inside-out headsets use the headset cameras to track controllers that carry visible infrared LEDs or passive reflectors. The Valve Index controllers use the Lighthouse base stations.

3. The runtime: the software layer between headset and application

The runtime is a software layer maintained by the headset manufacturer or platform owner. It exposes the headset's capabilities to applications through a defined API. The runtime handles:

OpenXR is a royalty-free, cross-platform API standard maintained by the Khronos Group. It defines a standard interface between applications and runtimes, so a single codebase can run on Meta Quest, SteamVR, Windows Mixed Reality, PlayStation VR2, and other OpenXR-compliant platforms without manufacturer-specific SDKs. The Khronos OpenXR 1.1 specification formally defines view configurations, reference spaces, frame synchronization, and input action binding. OpenXR 1.1 specification [1].

4. Reference spaces: how VR knows where the floor is

OpenXR defines reference spaces that describe the coordinate frame in which applications place virtual objects:

This is why a VR application can request room-scale space without being able to create a missing boundary by itself. The headset setup process owns the physical play area definition. Applications and runtimes are separate responsibilities.

5. Application rendering: building and submitting frames

The VR application is responsible for rendering the virtual scene from the poses the runtime provides. At each frame:

  1. The application calls the runtime's frame-wait function to synchronize with the display refresh cycle.
  2. The runtime returns the predicted headset and controller poses for the moment the frame will be displayed (not the current moment). This prediction compensates for rendering time so the image matches the user's position when it actually appears.
  3. The application renders the scene from the predicted left-eye and right-eye views using its game engine (Unity, Unreal Engine, Godot, or a custom engine).
  4. The rendered textures are submitted to the runtime's compositor, which performs lens distortion correction and outputs them to the display.

If the GPU cannot render a frame in time for the display refresh, the compositor can apply asynchronous reprojection (also called ATW: Asynchronous TimeWarp). This technique warps the previous frame to approximately match the new head position, reducing the perceived motion-to-photon latency even when the CPU or GPU is overloaded. Reprojection is a safety net, not a substitute for adequate hardware performance.

Why motion-to-photon latency matters so much

Motion sickness in VR is primarily caused by a conflict between what your eyes see and what your vestibular system (inner ear) expects. When you rotate your head, your inner ear senses the rotation immediately. If the visual update lags by more than roughly 20 ms, your brain receives contradictory signals: motion without matching visual change. The result is nausea, disorientation, and eye fatigue.

Modern headsets target 20 ms or less total motion-to-photon latency. The budget is consumed by sensor readout, pose prediction computation, application rendering, compositor processing, and display panel response. Every millisecond counts. This is why VR headsets need high-refresh displays and low-level access to the display pipeline that general-purpose monitors do not provide.

How the same game can behave differently on different headsets

A VR application's experience is the product of every component in the chain: the display resolution and refresh rate, the tracking quality, the controller input profiles, the runtime capabilities, and the rendering hardware. A game that runs smoothly on a dedicated standalone headset like Meta Quest 3 (using its Snapdragon XR2 Gen 2 chip) may behave differently when streamed over Air Link from the same PC, because network latency and compression are added to the pipeline.

The word "VR compatible" on a store page guarantees very little about the specific experience on a specific headset, connection method, or PC configuration. For practical compatibility guidance, see the headset-specific requirements pages on VRHow.

Frequently Asked Questions

How does a VR headset display an image?

A VR headset renders a separate perspective image for each eye and routes it through lenses that adjust focus so the display appears at a comfortable viewing distance. Fresnel lenses are lightweight and common in wider headsets; pancake lenses fold the optical path for a slimmer form factor but require a brighter panel. The two offset images create stereoscopic depth when your brain fuses them.

What is inside-out tracking in VR?

Inside-out tracking uses cameras mounted on the headset itself to estimate head position and orientation, with no external base stations required. The cameras observe the room and apply computer vision algorithms (SLAM) to build a local map and locate the headset within it. IMUs provide high-frequency orientation updates between camera frames.

What is OpenXR and why does it matter?

OpenXR is a royalty-free, cross-platform API standard maintained by the Khronos Group. It defines how applications query headset poses, submit rendered frames, and interact with input devices, allowing one codebase to target multiple headsets and runtimes without manufacturer-specific SDKs.

Why does high latency cause motion sickness in VR?

When the rendered image lags behind your head movement, your visual system perceives motion that your vestibular system does not confirm. This sensory conflict is the primary driver of VR-induced discomfort. Headsets target motion-to-photon latency below 20 ms, and many use asynchronous reprojection to compensate for dropped frames.

Related guides

Sources

  1. Khronos OpenXR 1.1 specification: reference spaces, view configurations, timing and frame submission.
  2. Khronos Group: OpenXR overview: cross-platform API and the runtime/application relationship.
  3. Google Cardboard developer documentation: motion tracking, stereoscopic rendering and user interaction as core VR building blocks.