Skip to content

Conversation

@Axel-Jacobsen
Copy link

@Axel-Jacobsen Axel-Jacobsen commented Feb 22, 2022

getParameter can be slow in webGl because it can potentially require a possible flush + round trip: Mozilla Docs

If this is equivalent, removing it increases performance.

edit: draft because I made a mistake with including the previous commit 23bc248 in this PR as well. Leaving it up because I am curious about the response of this.

@Axel-Jacobsen Axel-Jacobsen changed the title Viewport optzn Get viewport dimensions without gl.getParameter Feb 22, 2022
@Axel-Jacobsen Axel-Jacobsen marked this pull request as draft February 22, 2022 22:51
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.

1 participant