Log inStart free
LESSON 25.16 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Real-time loops under deadlines

Watch a target move on while the agent senses, thinks and acts.


Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 25.16 · REAL-TIME BAYWORLD 1000 MS IN 1000 MS
01
Stage 1 of 5 · Stepped or real
In real time the world keeps moving while the agent thinks. The target never waits.
Explain it simply

The teal line is the target's position over one second of clock time. In the real world, nothing waits for the agent. The target moves on the whole time, like a ball that keeps rolling while you decide where to reach.

A sine line of the target's position over 1000 ms. No pauses.

target, framesinferenceactions, agentlate, errordeadline tickworld waits
01002003004005006007008009001000 msstepped or realposition+30 cm−30 cmtargetworld time = wall time: 1000 ms in 1000 ms01002003004005006007008009001000 msstepped or realposition+30 cm−30 cmtargetworld time = wall time: 1000 ms in 1000 ms
Toy: 1 s of wall clock, a target on a 30 cm sine, seeded latencies
STAGE 1 / 5
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
x(t)=30sin⁡ ⁣(2πw(t)1000 ms)\sy{x}{data}{x}(t) = 30\sin\!\left(2\pi \tfrac{w(t)}{1000\,\text{ms}}\right)
w(t)=t,  w(1000)=1000 msw(t) = t, \; w(1000) = 1000\,\text{ms}

The target's position follows world time w, not the wall clock.

Common mix-ups

MYTHA policy that works in simulation works as well in real time.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01If the loop runs async, does the agent act more often or less often in 1 s?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
  • 4 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.