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

chore: reusue Floatbuffer for uniform #4762

Merged
merged 4 commits into from Jun 15, 2021

Conversation

pollend
Copy link
Member

@pollend pollend commented Jun 13, 2021

every allocation of a direct buffer will also zero out the memory. for some of the unfirom operations we end up doing these operations for a non trivial amount so it makes sense to reuse the buffer between calls. Materials are allocated once so there isn't a heavy cost with allocating a smaller buffer upfront if it can help with performance.

@github-actions github-actions bot added the Type: Chore Request for or implementation of maintenance changes label Jun 13, 2021
@pollend pollend added the Topic: Rendering Requests, Issues and Changes related to lighting, meshes, camera, etc. label Jun 13, 2021
Copy link
Member

@jdrueckert jdrueckert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully started CoreGameplay with this. Everything looked as usual, so I don't think this breaks anything.

@jdrueckert jdrueckert merged commit 718c2ff into develop Jun 15, 2021
@jdrueckert jdrueckert deleted the chore/minor-optimization-GLSLMaterial-matrix branch June 15, 2021 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Topic: Rendering Requests, Issues and Changes related to lighting, meshes, camera, etc. Type: Chore Request for or implementation of maintenance changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants