-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Don't invalidate the bounding box cache for nodes on position changes #1881
Labels
performance
Improving speed and memory usage
Milestone
Comments
1 task
maxkfranz
added a commit
that referenced
this issue
Jul 4, 2018
…texture cache invalidations - N.b.: Some further minor changes for performance improvements are marked with "TODO" - Don't require parallel edges iteration in `eles.boundingBox()` re. rendered style recalculation - Shift the cached bounding box on node position changes -- rather than complete invalidation - Simplify the rendering `notify()` function - Simplify batching code - Refactoring of control point calculations - Simplify rendered style queuing to do traversals only on ticks - Make the stylesheet more minimalistic - Ensure that the element texture cache is not invalidated when the style hash is unchanged - Style-originating triggers are organised per property Ref: #1881 #2027 #2145 #1337
maxkfranz
added a commit
that referenced
this issue
Jul 9, 2018
… use `nodes.silentShift()` Ref #1881
maxkfranz
added a commit
that referenced
this issue
Jul 9, 2018
maxkfranz
added a commit
that referenced
this issue
Aug 10, 2018
- Child nodes would be dragged doubly by having them being `shift()`ed while also having them in the drag list. - Revise the drag lists to use collections to avoid the creation of intermediate arrays. This should give a minor performance improvement. It also simplifies lookups. - Miscellaneous cleanup. Ref #1881
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instead of recalculating the bb all over again (expensive), just shift the bb by the position delta.
The text was updated successfully, but these errors were encountered: