You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 10, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 10, 2023. It is now read-only.
Can we avoid blocking the WebVR render thread? #60
Currently, sync_poses is a blocking function, which blocks the WebVR render thread until the next animation frame. This means the render thread can't perform other useful work while waiting for the next animation frame. In Servo, the WebVR render thread is the same as the WebGL thread, so the WebGL thread is blocked, leading to issues such as servo/servo#22914, where webrender is blocked waiting on the WebGL thread.
We can do that separation right once we get servo/surfman#133 implemented. That task is blocking other many tasks (e.g. Servo WebVR in FxR). cc @jdm is already anyone working on it or is there any plan to start the work?
Another solution may be to create another GL shared context but not sure if it's worth the effort because it's going to be throw away code when SurfaceTextures are ready.
Activity
asajeffrey commentedon Feb 20, 2019
A potential fix: asajeffrey@1bfc1e7
MortimerGoro commentedon Feb 21, 2019
We can do that separation right once we get servo/surfman#133 implemented. That task is blocking other many tasks (e.g. Servo WebVR in FxR). cc @jdm is already anyone working on it or is there any plan to start the work?
Another solution may be to create another GL shared context but not sure if it's worth the effort because it's going to be throw away code when SurfaceTextures are ready.
asajeffrey commentedon Feb 22, 2019
The fix I implemented is for the frame data to return a future, and to have the script thread rather than the GL thread block on it.
asajeffrey commentedon Feb 26, 2019
Fixed by #62