requestAnimationFrame timestamps are very inaccurate
Categories
(Core :: Graphics, 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.
Comment 1•4 months ago
|
||
The severity field is not set for this bug.
:bhood, could you have a look please?
For more information, please visit BugBot documentation.
Updated•1 month ago
|
Comment 2•7 days ago
|
||
The severity field is not set for this bug.
:bhood, could you have a look please?
For more information, please visit BugBot documentation.
Description
•