Skip to content

cluster-render: --skip shows a scene file's animation sequence at its end on iDrive 7 - #282

Merged
robertnisipeanu merged 3 commits into
mainfrom
cluster-render-anim-ramses19
Nov 24, 2026
Merged

robertnisipeanu merged 3 commits into
mainfrom
cluster-render-anim-ramses19

Conversation

@robertnisipeanu

@robertnisipeanu robertnisipeanu commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

--skip of a scene file's animation sequence shows its end on iDrive 7's
libramses 19, in both kinds of animation system, and make test-ramses
passes again.

libramses 19 takes AnimationSequence::startAt only while the sequence's
stop is after its animation system's time. Otherwise it applies nothing, and
a sequence that is playing keeps the value it had. Run against the unit's
library, a 0→10 sweep gives:

Start Value
stop 1 ms ahead of the system's time 9.99, then 10 at the stop
stop equal to the system's time unchanged (0 idle, 3 when it was at 3)
stop 1 ms or more behind unchanged

Two skips hit that:

  • Real-time system: the skip started the sequence lasts + 1 ms in the
    past, so its stop had already passed. The failing check was "the file's
    animation sequence: played, skipped to its end, …": swept 3 300 ms after --play, 3 after --skip.
  • System without a clock of its own, nothing playing in it: the stop was
    set equal to the system's time, so the end was never applied. A skip while
    another sequence plays was not affected: the service's clock had moved on
    since the last tick.

Change

  • Real-time: a skip starts the sequence so that it ends 250 ms after the
    stamp. Its last 250 ms play, and one that lasts no longer plays whole. The
    renderer applies the same rule on its own clock, so a skip must reach the
    display while the end is still ahead. A stop placed just past "now" would be
    dropped there, and 250 ms leaves room for the link.
    A sequence the service started that long ago or earlier (already in its last
    250 ms, or ended) is left as it is, so a skip never moves a value back.
  • Without a clock of its own: SequenceClock::play puts a skip's end at
    least 1 ms past the system's time. That time, which only goes forward,
    moves by 1 ms when needed.
  • Docs: PROTOCOL.md (the --skip row and "Playing a file's animations",
    including what a real-time start whose end has passed shows: nothing),
    ABI.md (the startAt rule; the sequence calls VERIFIED by make test-ramses) and CHANGELOG.md. The protocol, the hello's
    scene_anim and --play stay the same.

Checks

  • ramses_check, real-time: the value right after --skip is between
    7.5 and 10, reaches 10 within 300 ms, and stays 10 after a second --skip.
  • ramses_check, the other kind: the fixture's driven system gets a
    second sequence, settle, skipped while nothing plays. It reads 10. With
    SequenceClock as on main it reads 0.
  • scene_test: SequenceClock cases for a skip with nothing playing, a
    fresh system, and a skip in the same millisecond as a tick.

AI: Claude Code, Claude Opus 5.5

Tested:

  • make test (every host test and the Node client), make test-x86 and
    make target (both binaries' imports checked): all pass.
  • make test-ramses against an iDrive 7 unit's root filesystem copy: all ok
    (swept 3.01 300 ms after --play, 7.5 after --skip, 10 300 ms after it;
    settled 0, 10 after --skip with nothing playing).
  • make test-ramses27 against an iDrive 8 unit's root filesystem copy: all
    ok.
  • Not tested on a car.

Human review: No. A person asked for the fix; no person has read the diff yet.

Screenshots: n/a. The service draws nothing of its own here: a client's
scene file reaches the end its sequence describes.

🤖 Generated with Claude Code

robertnisipeanu and others added 3 commits November 24, 2026 15:21
…MSES 19

libramses 19 takes AnimationSequence::startAt only while the sequence's
stop is after its animation system's time; otherwise nothing is applied
and a playing sequence keeps its value. A real-time --skip started the
sequence with its stop already past, and a --skip in a system without a
clock of its own set its stop equal to the system's time when nothing
played in it, so neither showed the end.

A real-time skip starts the sequence to end 250 ms after its stamp, and a
skip in a system the service sets the time of puts its end at least 1 ms
past the system's time.
make test-ramses checks both, the second with another sequence of the
file's driven system skipped while nothing plays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A skip of a real-time sequence that is already in its last 250 ms, or has
ended, is left as it is rather than started again 250 ms before its end.
PROTOCOL.md says what a skip that reaches the display after the end does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@robertnisipeanu
robertnisipeanu merged commit a04c154 into main Nov 24, 2026
9 checks passed
@robertnisipeanu
robertnisipeanu deleted the cluster-render-anim-ramses19 branch November 24, 2026 16:15
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.

1 participant