Skip to content

Return latest frozen var buffer if available#67

Open
TylerAgostino wants to merge 1 commit into
kutu:masterfrom
TylerAgostino:patch-1
Open

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

Conversation

@TylerAgostino
Copy link
Copy Markdown

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.
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