Skip to content

Commit

Permalink
Clean up initial entry flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Avaer Kazmer committed Dec 12, 2019
1 parent 97cdeee commit 8c095cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1257,11 +1257,11 @@ <h3>Multiplayer</h3>
};
await _loadReferenceSpace();
const loadReferenceSpaceInterval = setInterval(_loadReferenceSpace, 1000);

renderer.vr.setSession(session);

let interations = 0;

await new Promise((accept, reject) => {
renderer.vr.setSession(session);

let interations = 0;
const _raf = (timestamp, frame) => {
const pose = frame.getViewerPose(referenceSpace);
if (pose) {
Expand Down

0 comments on commit 8c095cd

Please sign in to comment.