New issue
Advanced search Search tips

Issue 798755 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Alignment between frames and JS seems misleading

Project Member Reported by jakearchibald@chromium.org, Jan 3 2018

Issue description

Profile https://event-loop-tests.glitch.me/count-anim.html in the performance tab.

The results seem misleading/confusing in a couple of ways.

Firstly, it seems like requestAnimationFrame runs really late in the frame, whereas I'd expect to see the JS related to rendering at the start of the frame, so it has the maximum amount of time to prepare the frame before displaying.

Secondly, the UI makes it look like the frame was delivered before any of the related JS has run. The screenshot showing "5" appears way to the left of the JS call that makes the DOM modification. I wouldn't expect to see the result of my DOM changes until the frame after.
 
Screen Shot 2018-01-03 at 16.51.11.png
125 KB View Download
On the other hand, about:tracing appears more like I'd expect, with raf appearing close to the start of a frame.
Screen Shot 2018-01-03 at 17.24.28.png
198 KB View Download
Owner: alph@chromium.org
Status: Assigned (was: Untriaged)

Sign in to add a comment