-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
Currently the code that transfers the bounds of a DisplayList that has an RTree into another that also has an RTree will iterate over all bounds of all ops, even if they don't fit inside the current clip or cull rect of the target DisplayList. For one app that generated a picture with 300,000 DrawLine calls that extended hundreds of thousands of pixels off of the screen, it depends on proper culling of the DisplayLists in order to achieve decent performance on small screens.
The code in that method should pass the current cull rect of the DisplayList to the search-and-consolidate method to avoid a huge potentially quadratic consolidation of rectangles far outside the current view.
Another possible solution is described in #139323 which avoids copying all of the rects during the build phase of a DL.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status