WebXR: Tweak ARCore scheduling, add trace events
Update the ARCore scheduling to reduce latency, running GetFrameData and ARCore's update with a delay when appropriate. Use sliding averages to track timing for recent frames, and use that in the heuristics. Also add async trace events to mark Animating/Processing/Rendering frames in the ArCoreGL timeline. For background, see this presentation with some annotated trace events explaining the new logic: https://docs.google.com/presentation/d/e/2PACX-1vQTol3A0Y_LByOuMPSIb0qk-6FNQ7f5SpqO3GWfN-JY37LO7HPXTv1FrfK5e4Qerxx4CNzw9f90auCA/pub Bug: 1136276 Change-Id: I0550ed3666c47d6f12b2708a1e5ef9a305b07f10 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2464052 Commit-Queue: Klaus Weidner <klausw@chromium.org> Reviewed-by:Piotr Bialecki <bialpio@chromium.org> Cr-Commit-Position: refs/heads/master@{#816724}
Showing
This diff is collapsed.
Please register or sign in to comment