Computer Vision and AI Motion Tracking in XR: Architectural Patterns

How AI motion tracking fuses camera and IMU data into a 6DoF pose inside XR's 20 ms motion-to-photon budget, and which stages can leave the headset.

Computer Vision and AI Motion Tracking in XR: Architectural Patterns
Written by TechnoLynx Published on 04 Apr 2025

AI motion tracking in an XR headset turns camera and IMU data into one answer: where the head is right now, as a six-degrees-of-freedom pose. Camera frames feed visual-inertial odometry, which is accurate but slow. Inertial measurement unit (IMU) samples feed a fast integrator that fills the gaps between visual pose updates. A predictor then estimates where the head will be in the next few milliseconds. The whole loop has to fit inside a motion-to-photon budget of under 20 milliseconds, and the tracking itself is expected to sample at about 1 kHz. Most of the design work in motion tracking is deciding which of those stages must stay on the headset and which can move to an edge server or GPU without breaking that budget.

How AI Motion Tracking Turns Camera Frames into a 6DoF Pose

The input side is a set of sensors. XR devices carry outward cameras for the environment, inward cameras or sensors for hands and gestures, sometimes depth sensors (structured light, time-of-flight, LiDAR), and IMUs for orientation and movement. ETSI’s 2021 technical report on XR in 5G calls the result positional tracking: tracing the scene coordinates of moving objects such as head-mounted displays and controllers in real time, and deriving the viewer pose as a combination of position and orientation. The same report notes that tracking adds continuous localisation over time to what would otherwise be a one-off position fix.

On the visual side, the work starts with frame-to-frame alignment. A typical visual SLAM tracker detects features in each incoming frame (ORB, SIFT, SURF or corners), matches them against a reference keyframe and computes the relative motion between the two. Local map adjustment then corrects that alignment and picks keyframes, and loop closure recognises a place already visited. The XR-VIO paper (2025) shows how this has been adapted for XR applications: it couples gyroscope measurements tightly into the visual structure-from-motion step to make initialisation robust, and combines continuous optical-flow tracking with descriptor matching to get both robustness and accuracy.

Why Slow VIO and Fast IMU Integration Are Combined

Visual-inertial odometry (VIO) uses IMU acceleration and angular velocity together with camera images to produce a 6DoF pose. It is accurate, but its rate is capped by heavy computation and by cameras that run at tens of hertz. The rest of the system asks for poses much more often: the RemoteVIO authors (2025) point to 120 Hz or 144 Hz pose queries for asynchronous reprojection, or timewarp, to produce each displayed frame. IMU integration runs at hundreds of hertz and is lightweight, yet it drifts badly unless VIO corrects it in time.

Combining the two meets both the accuracy and the frequency requirements for pose queries. Meta’s description of Oculus Insight makes the division explicit: IMU data from headset and controllers is integrated for low-latency orientation and position, while camera landmarks such as furniture corners or floor patterns are observed repeatedly to compensate for drift. On top of the fused estimate, Insight runs an extrapolation function with dynamic damping to predict where the head and hands will be in the next few milliseconds, which reduces jitter. John Carmack’s caution still applies to that last step: prediction smooths sensor jitter and covers a small amount of latency, but it produces artefacts when movements start or change, so real latency reduction comes first.

Motion Tracking Versus Motion Capture

Motion tracking and motion capture both rely on IMUs and sensor fusion. Tracking in XR exists to keep a rendered world registered to the user while they move, so its output feeds real-time rendering. Inertial motion capture, by contrast, translates IMU rotations onto a software skeleton.

Inertial motion capture suits uses ranging from tight spaces to large capture areas without external cameras, but it delivers lower positional accuracy and drift that compounds over time, and it needs external references for absolute position. An XR headset tackles the same drift problem with camera landmarks. Markerless approaches go further: in 3D pose estimation, a pose is reconstructed from an image or a depth map. The practical distinction for an engineer is the latency contract. For the wider set of vision problems on a headset, our piece on computer vision in virtual and augmented reality covers the surrounding tasks.

How Inside-Out Tracking Follows the Head, Hands and Controllers

Inside-out tracking places the cameras and sensors that determine position on the tracked device itself, typically the head-mounted display. Outside-in tracking is the reverse: base stations or cameras fixed in the room observe the headset and controllers. Inside-out puts the sensors on the headset, and Quest also runs the processing on-device.

Oculus Insight is a publicly described example of that workload. It computes the headset and controller positions every millisecond, using visual-inertial SLAM for the headset and constellation tracking for the controllers, and fuses inputs from multiple IMUs, ultra-wide-angle cameras and infrared LEDs. The controllers’ infrared LEDs are seen by the headset cameras, which bounds the drift from integrating the controllers’ IMUs. Hands are tracked by a separate pipeline from the headset cameras, covered further down.

Insight’s compute pipeline runs as several asynchronous on-device threads. Insight runs a mapper thread that modifies the map and sends copies to a tracker thread, which estimates poses from camera frames, while an IMU thread on higher priority updates the latest state and writes to a shared memory buffer to minimise latency. Map updates are done asynchronously in the background with device-specific DSP optimisations. Meta also notes why VR is harder than phone AR: in handheld AR the effect fills a small part of the field of view, whereas VR content fills all of it, including peripheral vision, so tracking errors are far more visible. Our article on how perception pipelines run on a headset goes further into how gaze, hand and scene models share that silicon.

What Is Motion-to-Photon Latency, and What Budget Does Tracking Have to Meet?

Motion-to-photon latency is the total time from a physical head movement to the moment the display shows the changed image. ETSI’s report sets the requirement at less than 20 ms, alongside 6DoF tracking, sub-centimetre accuracy and quarter-degree rotation accuracy. Carmack gives the perceptual basis: absolute delays below about 20 ms are generally imperceptible, and he calls the target challenging once sensor and display latencies are added.

The budget is spent across the whole chain, which ETSI summarises as tracker, CPU, GPU, display, photons. Carmack’s breakdown shows how fast it goes. Most USB HID devices update 125 times a second, giving up to 8 ms of sampling jitter. A good LCD panel switches in around 10 ms. A 60 fps display scanning out incrementally changes the bottom of the screen 16 ms after the top, which makes the world appear to shear on an OLED headset.

Two techniques claw that time back. Late scheduling samples the input just before the view is rendered rather than at the start of the frame, which can remove nearly a full frame of latency. Time warping takes the finished frame, fetches the newest pose, and re-projects the image to approximate the updated viewpoint. Combined, Carmack’s estimate is that head orientation feedback can reach the eye in 2 to 18 ms on a 60 Hz display, while actions that change simulation state still take the full 32 to 48 ms pipeline. The implication for tracking engineers: reprojection only works if a fresh pose is available at the moment it runs. Both RemoteVIO and Edge-SLAM kept the fast pose loop on the device.

Which Parts of the Motion Tracking Pipeline Can Be Offloaded?

The short answer: RemoteVIO keeps IMU integration on the headset and moves VIO to a server, while Edge-SLAM keeps tracking on the device and moves mapping and loop closure to the edge. The 2025 XR survey describes the options as standalone devices doing rendering and tracking locally, split devices handing tasks to an external processor, cloud processing that must contend with latency, and edge computing as the trade-off between low latency and strong compute. ETSI’s 2021 report confirms that spatial mapping and localisation can be done on the device or supported by network elements, and notes that split compute and rendering architectures were not yet specified in the 5G system at the time.

RemoteVIO: VIO on a Server, IMU Integration on the Headset

The RemoteVIO study (2025) measures both user experience and power. Head tracking has been reported to use 35% to 55% of all CPU cycles in an XR system, which the RemoteVIO authors call an ideal target for offloading. RemoteVIO moves VIO to a remote server and keeps IMU integration on the device, so the integrator keeps producing poses at IMU rate whenever a fresh VIO pose has not yet arrived. The cost is that the integrator has to bridge the full network delay, and when the base pose updates the difference between old and new estimates shows up as jitter; the authors smooth it with a low-pass filter.

In the user study, 211 of 214 experiences (99%) were acceptable at an average network round trip of 200 ms or less, while acceptance fell to 79% at 400 ms and above. The main complaints, in order, were jitter, lag, drift and jerkiness. Power savings reached up to 52% on the CPU and up to 20% for the full system, with wireless transmission over 5G adding around 0.4 W against total savings of 2.2 W. Bandwidth is the catch: streaming stereo tracking images can take tens to hundreds of Mbps, 115 Mbps for the EuRoC dataset. The return path is cheap by comparison, since a timestamped viewer pose is a packet of about 30 to 100 bytes, or several hundred kbit/s over the network.

Edge-SLAM: Tracking on the Device, Mapping at the Edge

Edge-SLAM (2020) splits visual SLAM differently: the tracking module stays on the mobile device with a small local map, and local mapping and loop closure move to an edge server that holds the global map. CPU use on the device fell by roughly 35% to 50% and memory stayed constant, while drift stayed around 20 cm over a 150 m trajectory, similar to ORB-SLAM2 running entirely on-device. Rebuilding the local map from an edge update took 285 to 411 ms, during which tracking could not run.

Where Each Stage Can Run

Pipeline stage Typical rate Where it can run What offloading costs
IMU integration Hundreds of Hz On the headset in RemoteVIO Kept local to bridge VIO delays
Time warp / reprojection Per displayed frame, e.g. 120 to 144 Hz   Needs the newest pose
VIO pose estimation Tens of Hz, camera-bound Device or remote server Camera upload bandwidth; jitter as RTT grows
SLAM local mapping and loop closure Bursty Device or edge Map sync over a reliable link; reconstruction pauses tracking

How Hand Tracking and Full-Body Tracking from Video Differ

Hand tracking is a cascade: find the palm, then fit the hand landmarks. MediaPipe Hands uses two models, a palm detector followed by a hand landmark model, and runs in real time on mobile GPUs from a single RGB camera. Meta’s Quest system follows the same logic with its four monochrome cameras: neural networks predict hand locations and joint landmarks, which reconstruct a 26-degree-of-freedom pose of hands and fingers. Processing runs entirely on the device, using a quantised network so that hand tracking does not take resources from user applications. XRBench (2022) names hand detection to tracking as a control dependency between models, meaning the second stage runs only when the first finds something, which makes the workload dynamic and harder to schedule.

Full-body tracking from video estimates body keypoints for a person. BlazePose produces 33 body keypoints for a single person at over 30 frames per second on a Pixel 2 phone. Meta’s Inside-Out Body Tracking on Quest 3 uses the headset cameras to track elbow, wrist and torso movement, and its Generative Legs feature infers leg motion with AI from the upper-body position, without extra sensors. Architecturally, hand tracking is a detection-and-landmark problem on a small, highly articulated object close to the cameras, while self-body tracking from a headset is partly a generative problem, filling in what the cameras cannot see.

Tracking Models Share an Accelerator with Everything Else

Tracking rarely runs alone. XRBench describes XR workloads as multi-task, multi-model, run in three patterns: cascaded (models back to back for one function), concurrent (independent models at the same time) and a hybrid of both. Its authors argue that latency or FPS for a single model does not capture user experience across concurrent tasks. In a real-time system, finishing faster than the deadline gains nothing, so latency is a constraint to meet, not a number to minimise. XRBench also leaves hardware utilisation out of its score, judging it the wrong metric for real-time multi-model workloads. Its results also show that each usage scenario prefers a different accelerator design, so the hardware has to be co-designed with the workload.

The engineering consequence is that a hand-tracking model that benchmarks well in isolation can still drop frames once VIO, gaze and depth models compete for the same NPU or GPU.

Where Tracking Accuracy Breaks Down

Inaccurate spatial tracking shows up as virtual object jitter, misalignment and user discomfort. The XR Reality Check study (2025) tested five commercial devices across 16 scenarios on a synchronised testbed. Individual devices showed up to 101% increases in error in featureless environments, and accuracy correlated strongly with visual conditions and motion dynamics. Between devices, performance differed by up to 2.8 times, tied to sensor configuration and dedicated processing units.

In featureless environments the visual tracker has fewer features to match, and landmarks are what correct IMU drift. A device with fewer cameras or less dedicated compute has to cut either frame rate or model size, and the tracking pays for it. Testing in good lighting against a textured room says little about how a pipeline behaves in a warehouse aisle or a white-walled clinic.

Who Can Port a Motion Tracking Pipeline Onto Headset Hardware?

TechnoLynx ports computer vision pipelines like this one onto edge and embedded headset targets through its Computer Vision R&D practice. Our view is that portability work pays off when it is scoped against a measurable trigger, such as a tracking stage missing its frame deadline, a headset processor that cannot hold the model, or an offload design that only works on a lab network. A model that tracks well on a desktop GPU is a different artefact from one that tracks on a constrained headset, and closing that gap is engineering work.

This is not the right engagement for every team. If you are building on a commercial headset’s own tracking runtime, such as Oculus Insight, the vendor already runs this pipeline on-device. Outside help earns its place when the target hardware is new to the team, or when the latency budget has already been missed once.

FAQ

What Does Hand Tracking Mean?

Hand tracking means estimating the hand and finger pose from camera images, without gloves or other equipment. On Quest, neural networks predict hand landmarks that reconstruct a 26-degree-of-freedom hand and finger pose.

Which VR Headsets Have Hand Tracking?

Meta deployed camera-only hand tracking on the original Oculus Quest as a software update, using its four monochrome cameras. Quest 3 adds inside-out upper-body tracking from the same headset cameras.