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 an issue where buffers don't get deleted #6862

Merged
merged 1 commit into from
Jul 20, 2015
Merged

Conversation

gero3
Copy link
Contributor

@gero3 gero3 commented Jul 16, 2015

partial fix for #6729

Make sure buffers get deleted

@mrdoob
Copy link
Owner

mrdoob commented Jul 16, 2015

Hmm, this seems a bit entangled. I'll think about the issue.

@gero3 gero3 changed the title fix an issue wher buffers don't get deleted Fix an issue where buffers don't get deleted Jul 16, 2015
@gero3
Copy link
Contributor Author

gero3 commented Jul 17, 2015

I can update the system to make sure that attributes are only accessed from webglGeometries which is where they belong.

@dubejf
Copy link
Contributor

dubejf commented Jul 20, 2015

I just noticed that this tackles the same problem as #6875, but is more aggressive about deleting buffers.

@mrdoob mrdoob merged commit 1c568ed into mrdoob:dev Jul 20, 2015
@mrdoob
Copy link
Owner

mrdoob commented Jul 20, 2015

Ended up merging this one too. Thanks @gero3!

@mrdoob
Copy link
Owner

mrdoob commented Jul 20, 2015

Hmm... I think attributes could benefit of some clean up. The code for them is now spread around WebGLObjects and WebGLGeometries. Maybe it could be nice to have a WebGLAttributes class?

@dubejf
Copy link
Contributor

dubejf commented Jul 20, 2015

Geat! I was concerned that deleting the attribute buffers in onGeometryDispose would wreck havoc when a BufferGeometry is used by multiple meshes, but the buffers are recreated automatically. This is good.

@gero3 gero3 deleted the fixGPUMemory branch January 2, 2018 07:11
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.

3 participants