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

Fix lock order to remove the chance of deadlock #1121

Merged
merged 1 commit into from
Dec 22, 2020

Conversation

alec-deason
Copy link
Member

Because the buffers and buffer_infos locks were being acquired in different orders in different parts of the code there was the opportunity for a deadlock which I saw happen semi-regularly in situations where many sprites were being spawned per frame. This makes the order consistent and has fixed the deadlock in my application.

@memoryruins memoryruins added the A-Rendering Drawing game state to the screen label Dec 22, 2020
@cart cart merged commit 814c413 into bevyengine:master Dec 22, 2020
@fopsdev fopsdev mentioned this pull request Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants