VRHow / All sections / VR How-To Guides / How does VR work?
How does VR work?
Last checked October 11, 2026.
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:
- Fresnel lenses. A Fresnel lens consists of concentric rings that each refract light at the angle a full convex lens would use, but in a much thinner, lighter form. The tradeoff is visible concentric rings (the "god-ray" artifact) and a relatively narrow sweet spot. The Meta Quest 2 uses Fresnel lenses. Their low manufacturing cost and light weight made them the dominant design throughout 2018-2022.
- Pancake lenses. A pancake optical stack bounces light between polarizing surfaces multiple times before it reaches the eye, folding the optical path and producing a far slimmer headset. The Meta Quest 3, Pico 4 Ultra, and Apple Vision Pro all use pancake designs. The penalty is that pancake lenses absorb more light, requiring a significantly brighter display panel to maintain the same perceived brightness.
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:
- Inside-out tracking. Cameras on the headset itself observe the room and apply Simultaneous Localization and Mapping (SLAM) algorithms to estimate the headset's six-degrees-of-freedom (6DOF) position and rotation. No external hardware is required. Meta Quest, Pico, PlayStation VR2, Apple Vision Pro, and virtually every consumer headset released after 2019 uses inside-out tracking.
- Outside-in tracking. Infrared base stations emit precise light patterns that photodiodes on the headset detect. A central processor triangulates position from the sensor data. Valve Index and the original HTC Vive use this approach (SteamVR Lighthouse tracking). Sub-millimeter positional accuracy and robust tracking through fast motion were advantages, but the base stations add cost and setup complexity.
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:
- Querying sensor data and computing pose estimates.
- Managing the compositor: the process that takes rendered frames from the application and outputs them to the display with optional distortion correction and reprojection.
- Accepting input from controllers, hand tracking, and eye tracking devices.
- Enforcing refresh timing so frames appear at the correct moment.
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:
- VIEW. Origin at the viewer's head. Everything is relative to where you are looking. Used for rendering from the user's perspective.
- LOCAL. A gravity-aligned, world-locked origin near the user's starting position. Suitable for seated and standing experiences where room-scale movement is not required.
- STAGE. A floor-level rectangle that the runtime defines based on the play area the user configured in the headset's guardian or boundary system. Required for room-scale content but optional: a runtime may not be able to locate STAGE if the user has not set a play area.
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:
- The application calls the runtime's frame-wait function to synchronize with the display refresh cycle.
- 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.
- 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).
- 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
- What is virtual reality? A plain-language guide
- How to set up a VR headset
- VR vs AR vs Mixed Reality
- Meta Quest 3 hardware specs
Sources
- Khronos OpenXR 1.1 specification: reference spaces, view configurations, timing and frame submission.
- Khronos Group: OpenXR overview: cross-platform API and the runtime/application relationship.
- Google Cardboard developer documentation: motion tracking, stereoscopic rendering and user interaction as core VR building blocks.
