-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
performanceRelated to performance increase / regressionRelated to performance increase / regression
Description
The quadtree currently used only allows insertion and "stack", i.e., approxmate all points in the tree w.r.t. the query point using the Barnes-Hut algorithm. The new quadtree should also support querying a single point for intersection with the points in the tree.
Currently, there is one use case that will benefit from the new quadtree:
- In node dragging, when the user clicks on the screen, we need to know if the current cursor position is within the boundary of a node. Currently, this is implemented in O(n) time by iterating through all nodes and computing intersection between the cursor and the node. By using the new quadtree, it can be improved to O(lg n).
Metadata
Metadata
Assignees
Labels
performanceRelated to performance increase / regressionRelated to performance increase / regression
Type
Projects
Status
Future Work