WebXR: adjust AR frame scheduling
In AR mode, ARCore's blocking update() method was being called too early, blocking processing for the current frame. Use a delayed PostTask with an estimated arrival time for the next frame to avoid blocking the GL thread while waiting. Also improve event tracing by adding frame numbers and timing counters, inspired by those used for the GVR device's VR mode. Change-Id: Ifece617d6f489366834b96a04f002969bbaea7ed Bug: 1064629 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2118585 Commit-Queue: Klaus Weidner <klausw@chromium.org> Reviewed-by:Piotr Bialecki <bialpio@chromium.org> Cr-Commit-Position: refs/heads/master@{#753292}
Showing
Please register or sign in to comment