Skip to content

Investigate: Dip plot performance optimazation #325

@tomktjemsland

Description

@tomktjemsland

Dip plot draws both shape and tail of hundreds of points. The current approach start struggling with more than 1000 points, and our test data have between 1000 and 1500, with an outlier at 3000.

We drop from 60 fps to 30 fps at 1500 points, and from 60 fps to 10 fps at 3000 points. This is on decent PCs.

This is only a problem at greater zoom-levels where ALL data is being rendered every frame, whether we zoom or pan.

Quick and dirty solution:

  • Find and store closest N points of same type/color once when passing data to track. On each frame evaluate if each points body is overlapping or near overlapping with another point, if so, draw only tail.

Better long term solution:

  • Move from Canvas 2D to a WebGL-based solution, such as PIXI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EngineeringRecommendation to address technical debtenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions