Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upClip display list based on frame viewport #3809
Conversation
hoppipolla-critic-bot
commented
Oct 25, 2014
|
Critic review: https://critic.hoppipolla.co.uk/r/2974 This is an external review system which you may optionally use for the code review of your pull request. In order to help critic track your changes, please do not make in-place history rewrites (e.g. via |
|
@pcwalton r? I'm curious how this improves performance for you, as I've had a little trouble getting good numbers locally. |
|
This will definitely necessitate fixing #3790. |
|
Oh yes, that's certainly correct. Do you want me to start working on #3790 or is someone already tackling it? |
|
I'm not working on it—although it also will make the maze solver a lot faster because we can remove |
|
@mrobinson: It would a big help if you could work on that. |
|
Time for a rebase! |
3f8c31f
to
63a6079
|
Thanks! Rebased. |
|
Er. I think I found a problem with the rebase, but I'll try to work things out and post a new version of the PR. |
63a6079
to
b131604
|
Okay. I had to make some adjustments for the smooth scrolling work, but now reference tests seem to be passing. Sorry for the churn. |
|
|
||
| // We only need to move the clip rect if the viewport is getting near the edge of | ||
| // our preexisting clip rect. We use half of the size of the viewport as a heuristic | ||
| // for "close." |
This comment has been minimized.
This comment has been minimized.
pcwalton
Nov 8, 2014
Contributor
Can you factor 2.0 out into a constant so that we can easily tweak it later if we need?
This comment has been minimized.
This comment has been minimized.
mrobinson
Nov 11, 2014
Author
Member
Sure thing. I factored out both 2.0 constant used, including the one here and the one below.
|
r=me with a rebase and that one nit addressed. Sorry this took so long! |
Instead of creating a display list for the entire page, only create one for an area that expands around the viewport. On my machine this makes incremental layout of http://timecube.com 50% faster.
b131604
to
c732745
|
Thanks for the review! |
This comment has been minimized.
This comment has been minimized.
|
r=pcwalton |
This comment has been minimized.
This comment has been minimized.
|
@bors: retry |
This comment has been minimized.
This comment has been minimized.
|
saw approval from pcwalton |
This comment has been minimized.
This comment has been minimized.
|
merging mrobinson/servo/display-list-optimization = c732745 into auto |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
some tests failed: |
This comment has been minimized.
This comment has been minimized.
|
saw approval from pcwalton |
This comment has been minimized.
This comment has been minimized.
|
merging mrobinson/servo/display-list-optimization = c732745 into auto |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
all tests pass: |
This comment has been minimized.
This comment has been minimized.
|
fast-forwarding master to auto = 26045d7 |
…walton Instead of creating a display list for the entire page, only create one for an area that expands around the viewport. On my machine this makes incremental layout of http://timecube.com 50% faster.
This comment has been minimized.
This comment has been minimized.
|
r=pcwalton |
This comment has been minimized.
This comment has been minimized.
|
@bors: retry |
…walton Instead of creating a display list for the entire page, only create one for an area that expands around the viewport. On my machine this makes incremental layout of http://timecube.com 50% faster.
c732745
into
servo:master
mrobinson commentedOct 25, 2014
Instead of creating a display list for the entire page, only create one
for an area that expands around the viewport. On my machine this makes
incremental layout of http://timecube.com 50% faster.