Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make batch updates and delivery of a new frame into an atomic operation. #169

Merged
merged 1 commit into from Feb 3, 2016

Conversation

@pcwalton
Copy link
Collaborator

pcwalton commented Feb 3, 2016

Before this patch, there was a chance that batch updates could be
delivered to the compositor thread (destroying old resources) and then a
render operation could be invoked before arrival of the new frame. This
would cause the compositor thread to attempt to render frame N with the
resources of frame N+1, which would usually crash.

Closes #160.

Before this patch, there was a chance that batch updates could be
delivered to the compositor thread (destroying old resources) and then a
render operation could be invoked before arrival of the new frame. This
would cause the compositor thread to attempt to render frame N with the
resources of frame N+1, which would usually crash.

Closes #160.
@glennw
Copy link
Member

glennw commented Feb 3, 2016

Nice catch!

glennw added a commit that referenced this pull request Feb 3, 2016
Make batch updates and delivery of a new frame into an atomic operation.
@glennw glennw merged commit 8e76824 into servo:master Feb 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.