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

WebGLAttributes: Reduce heap allocations when using WebGL2 and partial buffer updates. #18418

Merged
merged 1 commit into from
Jan 22, 2020

Conversation

aardgoose
Copy link
Contributor

Remove the need to create new TypedArray objects when using attribute.updateRange by using the bufferSubData() WebGL2 API which removes the need for TypedArray.subarray().

See #18387 for diagnosis and details.

Tested and reduces GC frequency

@Mugen87 Mugen87 added this to the r113 milestone Jan 19, 2020
@Mugen87 Mugen87 changed the title reduce heap allocations when using WebGL2 and partial buffer updates. WebGLAttributes: Reduce heap allocations when using WebGL2 and partial buffer updates. Jan 19, 2020
@Mugen87 Mugen87 merged commit d78d60d into mrdoob:dev Jan 22, 2020
@Mugen87
Copy link
Collaborator

Mugen87 commented Jan 22, 2020

Updated builds 4939ed5.

@mrdoob
Copy link
Owner

mrdoob commented Jan 23, 2020

Thanks!

@mrdoob
Copy link
Owner

mrdoob commented Jan 23, 2020

FYI ce45cc3

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.

4 participants