RouteRunner Component

namespace Decnet.DeviceFit
public class RouteRunner : UnityEngine.MonoBehaviour

The RouteRunner executes an automated camera benchmark along checkpoints defined in a RouteDefinition asset. It manages warm-up frame discarding, fixture lifecycle hooks, and per-frame telemetry recording.


Fields & Properties

public RouteDefinition activeRoute;

The serialized route asset containing waypoint positions, rotations, durations, and visual checkpoint tags.

public List<RawFrameRecord> capturedFrames;

Preallocated list buffer storing recorded frame rows. Preallocated to at least 2048 entries in StartRoute() to prevent heap growth during runs.

public bool isRunning { get; }

Returns true while the camera benchmark is actively moving between checkpoints.


Methods

public void StartRoute(System.Action<CaptureSession> onComplete = null)

Initializes the profiling harness, queries all FixtureAdapter instances in the scene, and begins playback along the active route. Invokes onComplete with the aggregated CaptureSession when finished.

public void StopRoute()

Halts playback immediately and releases profiler recorders.


Copyright © 2026 Decnet Games. All rights reserved. DeviceFit is a commercial Unity Asset.

This site uses Just the Docs, a documentation theme for Jekyll.