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

Improve thread-safety of pipeline hash map. #100213

Merged

Conversation

DarioSamo
Copy link
Contributor

Pedro brought to my attention that there are possible race conditions concerning the hash map used by the pipeline cache for each material. This should ideally address any remaining race conditions and preserve the current level of performance, as hash_map is only intended to ever be accessed by the render thread and only rely on the mutex if a pipeline's missing to minimize the impact of the locking that is required.

CC @RandomShaper

@DarioSamo DarioSamo force-pushed the pipeline-hash-map-thread-safety branch from 88d4ac5 to be1dce1 Compare December 9, 2024 18:12
@clayjohn clayjohn added this to the 4.4 milestone Dec 13, 2024
@Repiteo Repiteo merged commit 6594a63 into godotengine:master Dec 13, 2024
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Dec 13, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants