web-client-ui icon indicating copy to clipboard operation
web-client-ui copied to clipboard

Poor chart performance when dragging the panel

Open mattrunyon opened this issue 1 year ago • 0 comments

Description

Charts resubscribe to the model when the panel is dragged to be moved. This can cause lockup and a lag spike if you are dragging a chart with a lot of points.

Steps to reproduce

  1. Run this Python
    from deephaven import empty_table
    from deephaven.plot.figure import Figure, PlotStyle
    
    import datetime
    from deephaven import time_table
    t = time_table("PT1S", datetime.datetime.now() - datetime.timedelta(seconds=150000)).update("Y=ii")
    
    plot_singles = (
        Figure()
        .plot_xy(
            series_name="Y",
            t=t,
            x="Timestamp",
            y="Y",
        )
        .axes(plot_style=PlotStyle.SCATTER)
        .show()
    )
    
  2. Click the button to continue and disable downsampling
  3. After the plot has loaded, drag the panel with the plot to move it to a different position

Expected results

  1. Snappy movement

Actual results

  1. UI freezes for 1-2 seconds at least shortly after the drag starts

Versions

Engine Version: 0.35.0-SNAPSHOT Web UI Version: 0.75.1 Java Version: 17.0.10 Barrage Version: 0.6.0 Browser Name: Chrome 124 OS Name: Linux

mattrunyon avatar May 04 '24 01:05 mattrunyon