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 vertex strides issues and a device memory leak #31

Merged
merged 5 commits into from Jul 12, 2021

Conversation

CodingRays
Copy link
Member

@CodingRays CodingRays commented Jul 12, 2021

So i fixed the vertex strides issues by rebinding the main buffer before each draw call with a byte offset. It is an ugly hack but honestly im not sure if it is possible to do this cleanly without some refractors.

Also the RenderSystemMixin required the remap = false otherwise it would not build for me.

@CodingRays
Copy link
Member Author

The vertex stride issue has now been fixed without needing to rebind the buffer.

@CodingRays CodingRays changed the title Fix vertex strides issues Fix vertex strides issues and a device memory leak Jul 12, 2021
@CodingRays
Copy link
Member Author

Also added a small patch that frees the vertex buffers when they get overwritten

@burgerindividual
Copy link
Member

looks good, gonna merge to big_nuts and merge big_nuts to master

@burgerindividual burgerindividual merged commit 56fbe7e into KilnGraphics:big_nuts Jul 12, 2021
@CodingRays CodingRays deleted the fix/vertex-strides branch July 12, 2021 17:13
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

Successfully merging this pull request may close these issues.

None yet

2 participants