KEMBAR78
"Ensure an immersive device" cannot be run in parallel · Issue #1036 · immersive-web/webxr · GitHub
Skip to content

"Ensure an immersive device" cannot be run in parallel #1036

@Manishearth

Description

@Manishearth
  1. Run the following steps in parallel:

    1. Ensure an immersive XR device is selected.

This step is running in a parallel thread but then you invoke something that grabs objects from the main thread. I think you need to make that more clear and separate what happens on the main thread and what happens in parallel.

Also, the selection that happens here presumably updates the state on the main thread. That should happen in the same task that eventually resolves the promise. This also goes for the step below here where you resolve with false.

Does that makes sense?

(I suspect something similar applies to the other in parallel algorithm, but I did not look in detail.)

Originally posted by @annevk in #1032

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions