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

Allow clamping framebufferScaleFactor #1084

Merged
merged 1 commit into from
Jun 12, 2020

Conversation

Manishearth
Copy link
Contributor

Fixes #1079

@Manishearth Manishearth requested a review from toji June 12, 2020 20:50
Copy link
Member

@toji toji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Manishearth Manishearth merged commit cdabb09 into immersive-web:master Jun 12, 2020
Comment on lines +1831 to +1832
1. The user-agent MAY choose to clamp or round |scaleFactor| as it sees fit here, for example if it wishes to fit the buffer dimensions into a power of two for performance reasons.
1. Let |framebufferSize| be the [=recommended WebGL framebuffer resolution=] multiplied by |scaleFactor|.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be done in the same step.
Alternatively line 1832 should be done first and then the user agent can change the size as it sees fit.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, I guess it's already merged...

@Manishearth Manishearth deleted the scalefactor-clamp branch June 18, 2020 18:07
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.

Indicate that framebufferScaleFactor may be clamped/rounded by the UA
3 participants