-
Notifications
You must be signed in to change notification settings - Fork 3
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
thread safety #33
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
XGPaint until this point has been used on very large sky areas and a huge number of halos. Shared-memory calculations where multiple threads mutate one shared array has been ok, because the sources in each thread's chunk are super far away from each other on the sky.
Now that we're generating smaller patches, we should probably make a small workspace structure that holds a copy of the map for each thread.
Then we'll add up the final maps at the end. For large maps, it still makes sense not to make 32 copies of the full sky, so we should probably have an option to do what XGPaint currently does.
The text was updated successfully, but these errors were encountered: