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: Call onUploadCallback() again after updating a buffer. #24912

Merged
merged 1 commit into from
Nov 8, 2022
Merged

WebGLAttributes: Call onUploadCallback() again after updating a buffer. #24912

merged 1 commit into from
Nov 8, 2022

Conversation

GoJermangoGo
Copy link
Contributor

When a BufferAttribute is updated (using needsUpdate = true) it is uploaded to VRAM a second time. This PR calls onUploadCallback for each upload. Previously, it was only called after the first initial upload.

When a `BufferAttribute` is updated (using `needsUpdate = true`) it is uploaded to VRAM a second time. This PR calls `onUploadCallback` for each upload. Previously, it was only called after the first initial upload.
@Mugen87
Copy link
Collaborator

Mugen87 commented Nov 5, 2022

Related: #18016, #18968

I think it's good to finally make this change! 😊

@Mugen87 Mugen87 added this to the r147 milestone Nov 5, 2022
@Mugen87 Mugen87 changed the base branch from master to dev November 5, 2022 08:39
@Mugen87 Mugen87 changed the title WebGLAttributes: Call onUploadCallback again after updating a buffer WebGLAttributes: Call onUploadCallback() again after updating a buffer. Nov 5, 2022
@Mugen87 Mugen87 merged commit 8747798 into mrdoob:dev Nov 8, 2022
@Mugen87
Copy link
Collaborator

Mugen87 commented Nov 8, 2022

Added a note to the migration guide just to be on the safe side.

https://github.com/mrdoob/three.js/wiki/Migration-Guide#146--147

@GoJermangoGo GoJermangoGo deleted the patch-1 branch November 16, 2023 02:01
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.

2 participants