Skip to content

Return latest frozen var buffer if available#67

Merged
kutu merged 1 commit into
kutu:masterfrom
TylerAgostino:patch-1
Jun 9, 2026
Merged

Return latest frozen var buffer if available#67
kutu merged 1 commit into
kutu:masterfrom
TylerAgostino:patch-1

Conversation

@TylerAgostino

Copy link
Copy Markdown
Contributor

Add a check to return the latest frozen var buffer if it exists. Without this check, the var buffers are sorted by the header's tick_count which is not frozen. So the frozen var buffer is only returned 1 in 3 frames of data, and the values switch back and forth between the frozen frame and live frames when monitored continuously. Since __var_buffer_latest is only set to a value within freeze_var_buffer_latest, and set back to None within unfreeze_var_buffer_latest, it seems like this was its original purpose.

This undoes part of a change introduced here.

Add a check to return the latest frozen var buffer if it exists.
@kutu kutu merged commit 3ee630b into kutu:master Jun 9, 2026
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