Sizing the fallback path before the accelerator fails

An on-device movement trainer needs enough processor headroom to keep feedback meaningful after its graphics execution context disappears. For FitnessRecognition, the useful sizing target is the complete fallback scoring path, including the work that continues while pose inference changes backend.

Budget the whole scoring interval

Assume a scoring interval B = 100 ms, an estimate for this design scenario rather than a measured FitnessRecognition requirement. Let C include frame preparation, processor inference, alignment with the reference movement and score publication, with video playback competing for resources throughout. Represent timing uncertainty by C_upper = Ĉ + u, where Ĉ is the predicted execution time and u covers contention and thermal variation within the assumed operating envelope; take C_upper = 80 ms as an estimate of that upper envelope. The available margin follows from H + C_upper = B, giving H = 20 ms, an estimate of the slack available before feedback misses its interval. This is an engineering error allowance, not a measured percentile or a guarantee outside the assumed envelope.

A lost context must invalidate the score

If the graphics context is lost, invalidate pending pose results, keep reference playback available and resume scoring only after the processor backend produces a fresh, usable pose.

Fallback consumes memory before it consumes time

That recovery path requires a processor-compatible model and an execution environment prepared before failure; retaining weights alone does not bound initialization latency. Size peak memory with M_peak = M_media + M_weights + M_accelerator + M_processor + M_transition, counting shared storage only once and including allocations that may overlap during recovery. Browser execution and media standards from the W3C family define interfaces, but they do not reserve memory or execution time, so a worker reduces scheduling interference without guaranteeing fault isolation. Keeping the camera pipeline, inference queue and score presentation separately controlled lets the application discard obsolete frames and visibly suspend assessment while all image processing remains local.

Accept the fallback only inside its measured envelope

Use a direct acceptance rule: the upper execution envelope must fit inside B, peak allocation must fit inside available memory, and backend initialization must fit inside the permitted feedback interruption. Validate these conditions under sustained thermal load and active playback, because the calculated margin applies only after the fallback is ready. Timing uncertainty also says nothing about pose accuracy, so poor visibility must suppress scoring rather than consume the remaining margin in increasingly expensive retries. If the rule fails, reduce inference input size or scoring cadence and reassess movement quality before selecting a larger processor.

Back to FitnessRecognition · Domains

← Back to FitnessRecognition
Engineering & Architecture Brief

Sizing the fallback path before the accelerator fails

An on-device movement trainer needs enough processor headroom to keep feedback meaningful after its graphics execution context disappears. For FitnessRecognition, the useful sizing target is the complete fallback scoring path, including the work that continues while pose inference changes backend.

Budget the whole scoring interval

Assume a scoring interval B = 100 ms, an estimate for this design scenario rather than a measured FitnessRecognition requirement. Let C include frame preparation, processor inference, alignment with the reference movement and score publication, with video playback competing for resources throughout. Represent timing uncertainty by C_upper = Ĉ + u, where Ĉ is the predicted execution time and u covers contention and thermal variation within the assumed operating envelope; take C_upper = 80 ms as an estimate of that upper envelope. The available margin follows from H + C_upper = B, giving H = 20 ms, an estimate of the slack available before feedback misses its interval. This is an engineering error allowance, not a measured percentile or a guarantee outside the assumed envelope.

A lost context must invalidate the score

If the graphics context is lost, invalidate pending pose results, keep reference playback available and resume scoring only after the processor backend produces a fresh, usable pose.

Fallback consumes memory before it consumes time

That recovery path requires a processor-compatible model and an execution environment prepared before failure; retaining weights alone does not bound initialization latency. Size peak memory with M_peak = M_media + M_weights + M_accelerator + M_processor + M_transition, counting shared storage only once and including allocations that may overlap during recovery. Browser execution and media standards from the W3C family define interfaces, but they do not reserve memory or execution time, so a worker reduces scheduling interference without guaranteeing fault isolation. Keeping the camera pipeline, inference queue and score presentation separately controlled lets the application discard obsolete frames and visibly suspend assessment while all image processing remains local.

Accept the fallback only inside its measured envelope

Use a direct acceptance rule: the upper execution envelope must fit inside B, peak allocation must fit inside available memory, and backend initialization must fit inside the permitted feedback interruption. Validate these conditions under sustained thermal load and active playback, because the calculated margin applies only after the fallback is ready. Timing uncertainty also says nothing about pose accuracy, so poor visibility must suppress scoring rather than consume the remaining margin in increasingly expensive retries. If the rule fails, reduce inference input size or scoring cadence and reassess movement quality before selecting a larger processor.

Related Architecture Specifications (DANCEGOAL): merenguesteps.com · retrodances.com · dancegoal.com

More Technical Articles on fitnessrecognition.com

Sizing the pose loop for the day the GPU disappears →