Skip to content

Fixup frame and viewport caching to be explicit#1093

Merged
Manishearth merged 5 commits into
immersive-web:masterfrom
Manishearth:cache-session
Jul 1, 2020
Merged

Fixup frame and viewport caching to be explicit#1093
Manishearth merged 5 commits into
immersive-web:masterfrom
Manishearth:cache-session

Conversation

@Manishearth

@Manishearth Manishearth commented Jun 30, 2020

Copy link
Copy Markdown
Contributor

Fixes #1090

Also fixes #1092 by adding a timestamp comparison.


Preview | Diff

@Manishearth
Manishearth requested a review from toji June 30, 2020 22:35

@toji toji left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM with one comment

Comment thread 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
Copy Markdown
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
Copy Markdown
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