Skip to content

Clarify visualizer timestamp ordering across stream updates - #229

Merged
kahrendt merged 1 commit into
mainfrom
fix/visualizer-timestamp-ordering
Sep 8, 2026
Merged

kahrendt merged 1 commit into
mainfrom
fix/visualizer-timestamp-ordering

Conversation

@maximmaxim345

@maximmaxim345 maximmaxim345 commented Sep 8, 2026 •

Copy link
Copy Markdown
Member

The visualizer requires non-decreasing timestamps without specifying where ordering resets. Allow earlier timestamps after a visualizer clear or when starting a new stream, while preserving ordering across configuration updates to an active stream.

Note: Servers that reset timestamp ordering on configuration-only stream/start must preserve it or explicitly clear the visualizer stream before sending earlier timestamps.

@kahrendt kahrendt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@kahrendt
kahrendt merged commit 49ad513 into main Sep 8, 2026
1 check passed
@kahrendt
kahrendt deleted the fix/visualizer-timestamp-ordering branch September 8, 2026 11:19
maximmaxim345 pushed a commit that referenced this pull request Oct 20, 2026
…#307)

<!-- Describe the change and why it is needed. -->

The visualizer role didn't define how an in-place `stream/start` treats
data received under the previous configuration, which `messaging.md`
leaves to each role. Match the player: frames sent before the update
keep the previous configuration, and clients keep buffered frames and
interpret each under the configuration in effect when it was received.
Also state that an in-place `stream/start` doesn't reset the
`buffer_capacity` count, as the player role does.

This matches what the existing timestamp-ordering (#229) and
buffer-accounting (#232) rules already assume, and what sendspin-server
and the aiosendspin server do.

Closes #306

### Breaking changes

- **sendspin-cpp**: drops all buffered visualizer frames on any
`stream/start` and decodes at delivery time with the current
`n_disp_bins`. It must keep frames across an in-place start and decode
each under its own configuration.

- [x] I accept the [Contributor License
Agreement](../blob/main/CONTRIBUTOR-LICENSE-AGREEMENT.md) for this
contribution.
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