Open Bug 1967935 Opened 5 months ago Updated 2 days ago

requestAnimationFrame timestamps are very inaccurate

Categories

(Core :: Graphics, defect)

Firefox 140
defect

Tracking

()

Tracking Status
firefox140 --- affected

People

(Reporter: cwiiis, Unassigned, NeedInfo)

Details

The timestamp given when receiving a requestAnimationFrame callback appears to either be truncated or rounded - it is always a whole number. This is terrible for calculating animation deltas; at 60Hz your timestamp is always going to be significantly inaccurate.

This is also an interoperability issue, Chrome does not suffer from this and reports timestamps with a significant number of decimal places.

The result of this is animations that can run too fast in Firefox and appear less smooth than the same animation in Chrome, even when there aren't any performance issues in play.

This was tested on Nightly under Fedora Linux.

The severity field is not set for this bug.
:bhood, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(bhood)
Flags: needinfo?(bhood)

The severity field is not set for this bug.
:bhood, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(bhood)
You need to log in before you can comment on or make changes to this bug.