Skip to content

Agent Flow: the UFO keeps flying smoothly in low-performance mode (#420, ide) - #448

Open
aMonteSl wants to merge 2 commits into
idefrom
claude/project-thread-osaa2w-smooth-ide
Open

aMonteSl wants to merge 2 commits into
idefrom
claude/project-thread-osaa2w-smooth-ide

Conversation

@aMonteSl

@aMonteSl aMonteSl commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Requested by Adrián · project thread

Fix after Adrián's manual test of #420 (epic #319): the UFO jumped from building to building instead of flying.

Cause

  • The render budget dropped the scene to static (laptop on battery). Agent Flow mapped static to "no motion", so every hop became a teleport.
  • Why the budget tripped now: since Agent Flow: replay builds new floors in their step (#413) #440 the city's height and floor tweens really run, and while they ran the view re-laid out legends, turn rings, delta caps and the step label on every frame.

What

  • modeLifecycle.js: only prefers-reduced-motion turns the flight off; a low frame-rate verdict keeps the hops (one transform per frame).
  • viewController.js: what rides on the roofs follows a growing city at ~11 Hz plus a last pass when it stops, instead of every frame. The throttle tolerates a clock that goes backwards (test hooks).
  • The shared render budget itself is unchanged (other analyses rely on it).

Tests

  • npm test green.
  • Agent Flow harness: stubs the render budget and checks that a forward step flies the main UFO through several in-between positions with no large jump, with the budget at full and at static. Fails on the old code (motion off at static), passes with this change; the full harness passes.

Docs

docs/agent-flow/ufo.md, docs/agent-flow/test-guide.md (step 11, on battery), CHANGELOG.


Generated by Claude Code

On battery Adrián's laptop dropped the scene to the render budget's
'static' verdict, and Agent Flow turned every hop off on it: the UFO
jumped from building to building. Since #440 the city's height and floor
tweens really run, and while they did the view re-laid out the legends,
turn rings, delta caps and step label on every frame, enough extra work
to cross the budget's threshold.

- Only prefers-reduced-motion stops the flight now; a low frame-rate
  verdict keeps the hops (one transform per frame).
- What rides on the roofs follows a growing city at ~11 Hz plus a last
  pass when it stops, instead of every frame.
- Harness: stubs the render budget and checks that a forward step flies
  the main UFO through several in-between positions with no big jump,
  with the budget at 'full' and at 'static'. Fails on the old code.
- Docs: ufo.md, test guide, CHANGELOG.
@aMonteSl aMonteSl self-assigned this Dec 2, 2026
…osaa2w-smooth-ide

# Conflicts:
#	apps/vscode-extension/CHANGELOG.md

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants