Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow performance in webrender-demos/spheres.html #17309

Open
glennw opened this issue Jun 14, 2017 · 1 comment
Open

Slow performance in webrender-demos/spheres.html #17309

glennw opened this issue Jun 14, 2017 · 1 comment
Labels

Comments

@glennw
Copy link
Member

@glennw glennw commented Jun 14, 2017

Test case: https://github.com/pcwalton/webrender-demos/blob/master/spheres.html

The frame rate in the spheres demo is much lower than it used to be.

After some profiling, it seems that the rendering performance is not the bottleneck:

perf

Resizing the window to be very small has no effect on the framerate, ruling out fill rate as a bottleneck.

I recorded a flame graph profile of the CPU time:

perf2

The majority of the CPU time appears to be spent in layout in this test case - the biggest factor is in style recalc. After layout, the next biggest consumer of CPU time is the calls in the script thread (set_width, set_height, set_top, set_left).

@glennw
Copy link
Member Author

@glennw glennw commented Jun 14, 2017

@jdm jdm added the I-perf-slow label Jun 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.