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

Fix speed regressions in spheres demo #187

Merged
merged 2 commits into from Feb 18, 2016
Merged

Fix speed regressions in spheres demo #187

merged 2 commits into from Feb 18, 2016

Conversation

@glennw
Copy link
Member

glennw commented Feb 18, 2016

No description provided.

gw3583 added 2 commits Feb 18, 2016
This is vital because it is used as a hash key for raster ops.

Before this change, two box shadows with the same parameters but different positions on screen would not hit the texture cache.
…ter ops.

The renderer converts them to device pixels later anyway, so this shouldn't affect accuracy.

This just means that fractional radii get the same hash key and hit the texture cache more often.
@glennw
Copy link
Member Author

glennw commented Feb 18, 2016

The first commit (to store the local raster origin) is the most important change, but both of these drastically reduce the number of box shadow raster ops in the spheres demo.

On my machine, the spheres demo easily runs at 60fps with these changes.

r? @pcwalton

pcwalton added a commit that referenced this pull request Feb 18, 2016
Fix speed regressions in spheres demo
@pcwalton pcwalton merged commit 13902ff into master Feb 18, 2016
@pcwalton
Copy link
Collaborator

pcwalton commented Feb 18, 2016

Thanks so much!

@glennw glennw deleted the box-shadow-speed branch Feb 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.