KEMBAR78
Fixup frame and viewport caching to be explicit by Manishearth · Pull Request #1093 · immersive-web/webxr · GitHub
Skip to content

Conversation

Manishearth
Copy link
Contributor

@Manishearth Manishearth commented Jun 30, 2020

Fixes #1090

Also fixes #1092 by adding a timestamp comparison.


Preview | Diff

@Manishearth Manishearth requested a review from toji June 30, 2020 22:35
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 with one comment

index.bs Outdated
1. Set |session|'s [=pending render state=] to <code>null</code>.
1. Let |oldLayer| be |activeState|'s {{XRRenderState/baseLayer}}.
1. Set |activeState| to |newState|.
1. If |oldLayer| is not equal to |activeState|'s {{XRRenderState/baseLayer}}, [=update the viewports=] for |session|.
Copy link
Member

Choose a reason for hiding this comment

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

This is good, but it doesn't account for the possibility that the existing baseLayer's dimensions change. That's an edge case, admittedly, and I don't think you need to block this PR because of it, just something to consider.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

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.

XRViews should be marked as inactive after the frame that produced them ends Frame/viewport caching spec text should be explicit

2 participants