Browser or GPU server: deciding where live dance pose inference is allowed to fail

Once a dancer expects a skeleton overlay or a correction cue while still moving, the architecture question stops being about model accuracy and becomes about which component is allowed to die. Running pose estimation inside the browser keeps the loop local, so the network can vanish without the dancer noticing. Streaming frames to a GPU server buys a heavier model and central control, but it puts the link inside the feedback loop as a single point of failure.

The boundary that flips the choice

The deciding parameter is the motion-to-feedback budget, and for live dance correction it sits around 150 ms from capture to rendered cue; beyond that the overlay visibly trails the body and the cue lands on the next count instead of the current one. A server pipeline has to fit capture, encoding, uplink, inference, downlink and rendering inside that window, while the browser pipeline pays only for capture, inference and rendering. On a wired studio network the server path can fit. On the congested mobile links where most people actually rehearse, the p95 round trip alone often eats 100 ms or more (an estimate drawn from typical cellular behaviour, not a guarantee), which leaves nothing for inference. So the boundary is neither accuracy nor cost: it is whether feedback must arrive inside the live budget on the worst network you promise to support.

How each option degrades

In the browser, the realistic failure is losing the GPU. Mobile browsers drop the WebGPU device under thermal or memory pressure, or when the tab goes to the background, and an app that never listens for device loss simply freezes the skeleton. The cure is cheap and local: catch the loss, rebuild the pipeline, and meanwhile fall back to a lighter model on WASM at a reduced frame rate, which delivers roughly a third of the throughput (an estimate that varies widely by handset) but keeps the loop closed. On the server path, failure is ambiguous rather than abrupt, because jitter and packet loss deliver stale poses that look perfectly valid, the client cannot tell a slow answer from a wrong one, and every recovery tactic, from jitter buffers to frame skipping, spends latency the budget no longer has. Browser compute and real-time transport standards such as WebGPU and WebRTC give you hooks for both paths, yet only the local one can degrade gracefully without asking the network for permission.

The decision rule

If the p95 round trip plus server inference time on your worst supported network exceeds the motion-to-feedback budget, put live inference on the device and treat the server as optional.

Where the server still wins

Below that boundary, or whenever scoring happens after the routine ends, the server option takes over. Post-hoc judging tolerates seconds of delay, survives outages by uploading the recorded take later, and benefits directly from a heavier model, multi-view fusion and one model version across every user. That points to the design most teams converge on: a small on-device model owns the live loop and never depends on the link, while the server re-scores uploaded takes asynchronously. The question to settle before the freeze is how far the two models may disagree before a user sees a live cue contradicted by the final score, because that tolerance decides which model the other one is calibrated against.

Can a server architecture be made safe just by adding a local fallback model?

Technically yes, but then you are shipping and maintaining the on-device model anyway, and that fallback becomes the path that defines your worst case. At that point the server is a refinement layer, which is the hybrid design, not the server option.

Back to DanceRecognition · Domains

← Back to DanceRecognition
Engineering & Architecture Brief

Browser or GPU server: deciding where live dance pose inference is allowed to fail

Once a dancer expects a skeleton overlay or a correction cue while still moving, the architecture question stops being about model accuracy and becomes about which component is allowed to die. Running pose estimation inside the browser keeps the loop local, so the network can vanish without the dancer noticing. Streaming frames to a GPU server buys a heavier model and central control, but it puts the link inside the feedback loop as a single point of failure.

The boundary that flips the choice

The deciding parameter is the motion-to-feedback budget, and for live dance correction it sits around 150 ms from capture to rendered cue; beyond that the overlay visibly trails the body and the cue lands on the next count instead of the current one. A server pipeline has to fit capture, encoding, uplink, inference, downlink and rendering inside that window, while the browser pipeline pays only for capture, inference and rendering. On a wired studio network the server path can fit. On the congested mobile links where most people actually rehearse, the p95 round trip alone often eats 100 ms or more (an estimate drawn from typical cellular behaviour, not a guarantee), which leaves nothing for inference. So the boundary is neither accuracy nor cost: it is whether feedback must arrive inside the live budget on the worst network you promise to support.

How each option degrades

In the browser, the realistic failure is losing the GPU. Mobile browsers drop the WebGPU device under thermal or memory pressure, or when the tab goes to the background, and an app that never listens for device loss simply freezes the skeleton. The cure is cheap and local: catch the loss, rebuild the pipeline, and meanwhile fall back to a lighter model on WASM at a reduced frame rate, which delivers roughly a third of the throughput (an estimate that varies widely by handset) but keeps the loop closed. On the server path, failure is ambiguous rather than abrupt, because jitter and packet loss deliver stale poses that look perfectly valid, the client cannot tell a slow answer from a wrong one, and every recovery tactic, from jitter buffers to frame skipping, spends latency the budget no longer has. Browser compute and real-time transport standards such as WebGPU and WebRTC give you hooks for both paths, yet only the local one can degrade gracefully without asking the network for permission.

The decision rule

If the p95 round trip plus server inference time on your worst supported network exceeds the motion-to-feedback budget, put live inference on the device and treat the server as optional.

Where the server still wins

Below that boundary, or whenever scoring happens after the routine ends, the server option takes over. Post-hoc judging tolerates seconds of delay, survives outages by uploading the recorded take later, and benefits directly from a heavier model, multi-view fusion and one model version across every user. That points to the design most teams converge on: a small on-device model owns the live loop and never depends on the link, while the server re-scores uploaded takes asynchronously. The question to settle before the freeze is how far the two models may disagree before a user sees a live cue contradicted by the final score, because that tolerance decides which model the other one is calibrated against.

Technical FAQ: Can a server architecture be made safe just by adding a local fallback model?

Technically yes, but then you are shipping and maintaining the on-device model anyway, and that fallback becomes the path that defines your worst case. At that point the server is a refinement layer, which is the hybrid design, not the server option.

More Technical Articles on dancerecognition.com

On-device or server inference for live dance feedback: where the choice flips →When dance feedback must survive the connection →