这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Nov 7, 2023. It is now read-only.

Conversation

@manthey
Copy link
Contributor

@manthey manthey commented Jan 4, 2016

Eventually, we will run out of Vertex Buffer Objects. Now, it is possible for the GPU to reuse them. Some sources cite that it is poor practice to allocated and deallocate VBOs (though much better than never deallocating them), and it would be better to maintain a reference to them and reuse them instead.

Also, cache the depthBits parameter. Getting WebGL parameters takes some time, and if we know they haven't changed, we can cache the values to get a minor speed improvement.

Eventually, we will run out of Vertex Buffer Objects.  Now, it is possible for the GPU to reuse them.  Some sources cite that it is poor practice to allocated and deallocate VBOs (though much better than never deallocating them), and it would be better to maintain a reference to them and reuse them instead.

Also, cache the depthBits parameter.  Getting WebGL parameters takes some time, and if we know they haven't changed, we can cache the values to get a minor speed improvement.
@aashish24
Copy link
Member

Thanks @manthey LGTM 👍

manthey added a commit that referenced this pull request Jan 4, 2016
@manthey manthey merged commit e2b391e into master Jan 4, 2016
@manthey manthey deleted the release-vbos-with-actors branch January 4, 2016 20:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants