How indoor cycling apps simulate riding | Ride Cave
All posts

How indoor cycling apps simulate riding

A look at the technology behind virtual cycling experiences.

Indoor cycling apps turn your smart trainer into a virtual cycling experience. Whether you are doing a structured workout, competing in a challenge, or riding through a 3D world, the underlying technology translates your pedaling into meaningful feedback. Here is how it works.

Smart trainer communication

Modern smart trainers use standardized protocols to communicate with apps. FTMS (Fitness Machine Service) is the most common, sending power, cadence, and speed data over Bluetooth. Apps read this data stream and can also send commands back to control resistance.

When you pedal, your trainer measures power output dozens of times per second. The app receives these readings and uses them to update your position in a virtual world, track progress through a workout interval, or evaluate challenge criteria. The two-way communication is what makes smart trainers smart.

ERG mode for workouts

During structured workouts, most apps use ERG (ergometer) mode. The app tells your trainer what power target to hold, and the trainer automatically adjusts resistance to achieve that target regardless of your cadence. Pedal faster and resistance drops. Pedal slower and resistance increases. You hit the target power either way.

ERG mode lets you focus on the workout rather than constantly adjusting gears. The tradeoff is that it can feel unnatural during hard efforts where you would normally shift. Some riders prefer simulation mode even for workouts to maintain a more road-like feel.

Physics simulation for virtual worlds

Virtual worlds use physics engines to translate power into speed. The basic equation balances your pedaling force against resistive forces: air drag, rolling resistance, and gravity on hills. At steady state, these forces balance and you maintain constant speed.

Air resistance follows a squared relationship with speed. Doubling your speed requires four times the power to overcome drag. This is why small power increases at high speed produce small speed gains, while the same power increase at low speed produces larger gains. Good physics models capture this nonlinear behavior.

Ride Cave and other apps validate their physics against known cycling benchmarks. At 200 watts with typical aerodynamic values, a rider should travel around 32-33 km/h on flat ground. Track environments add banking physics where the curve geometry affects speed and stability.

Challenge evaluation systems

Challenges require real-time evaluation of success criteria. The app continuously compares your current metrics against the challenge goals. Hold 4 watts per kilogram for 60 seconds. Complete 1 kilometer in under 80 seconds. Stay above 90 RPM for the entire effort.

Good challenge systems handle edge cases gracefully. What happens if your trainer briefly drops connection? How do start conditions account for warmup time? Ride Cave uses an open challenge protocol that defines arming conditions, success criteria, and failure modes explicitly.

Data recording and export

Apps record your ride data for later analysis. The standard metrics include power, heart rate, cadence, speed, and elapsed time. More advanced apps calculate derived metrics like Training Stress Score (TSS), Intensity Factor (IF), and Normalized Power (NP).

Export formats let you move data between platforms. FIT files work with Garmin Connect and most training platforms. TCX files are older but widely supported. Direct integrations with Strava and other services automate the upload process.

Rendering virtual environments

Visual presentation ranges from simple 2D graphics to full 3D worlds. Some apps show your rider from a third-person view moving through detailed landscapes. Others focus on data visualization with minimal graphics. The choice is partly aesthetic and partly about device performance.

Browser-based apps like Ride Cave use WebGL for 3D rendering, which runs on any modern device without installation. Native apps can access more graphics power but require downloads and updates. Both approaches can deliver engaging visual experiences.

Multiplayer and social features

Social features add connection to what would otherwise be solitary training. Real-time multiplayer shows other riders in the same virtual space. Leaderboards create asynchronous competition. Group workouts synchronize intervals across participants.

Zwift pioneered the social indoor cycling space and built the largest community. Other apps, including Ride Cave, offer leaderboards and ghost riders for competitive elements without requiring simultaneous online presence. The social layer transforms indoor training from isolated to connected.

Ben Snyder
Founder of Ride Cave

Ready to try Ride Cave?

Ride Cave is free, runs in your browser, and requires no account to start.

Start Riding