Igalia / wolvic-chromium

The official GitHub mirror of the Chromium source
https://chromium.googlesource.com/chromium/src/
BSD 3-Clause "New" or "Revised" License
11 stars 6 forks source link

Wolvic: Fix time delta value in XR frame data #45

Closed tiagovignatti closed 11 months ago

tiagovignatti commented 11 months ago

Time delta was being computed only once, during WebXR session initialization, resulting in fixed timestamps being forwarded to the apps. This would break those VR experiences using timestamp during rAF.

In order to fix that, this changes the WebXrTryStartAnimatingFrame to compute time delta every time this method runs.