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

Get viewport dimensions without gl.getParameter #60

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

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