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

Race condition creating buffers #21

Open
ccummingsNV opened this issue Jul 2, 2024 · 0 comments
Open

Race condition creating buffers #21

ccummingsNV opened this issue Jul 2, 2024 · 0 comments

Comments

@ccummingsNV
Copy link
Collaborator

During testing, I found that calling the following:

            render_data.index_buffer = self.device.create_buffer(
                usage=sgl.ResourceUsage.shader_resource,
                debug_name="index_buffer",
                data=np.copy(mesh.indices),
            )

Could result in a permanently corrupt index buffer. The only way to fix it was to call device.wait() immediately before the buffer setup. The issue reproduced itself when creating around 150 index/vertex buffers.

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

No branches or pull requests

1 participant