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

Commits on Feb 18, 2016

  1. Change the box shadow structure to store the local raster origin.

    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.
    gw3583 committed Feb 18, 2016
  2. Store box shadow raster ops in device pixels, as we do for border ras…

    …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.
    gw3583 committed Feb 18, 2016
You can’t perform that action at this time.