web-client-ui
web-client-ui copied to clipboard
Poor chart performance when dragging the panel
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
- 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() ) - Click the button to continue and disable downsampling
- After the plot has loaded, drag the panel with the plot to move it to a different position
Expected results
- Snappy movement
Actual results
- 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