Skip to content

Downsampling average/peak mode slow with large datasets #3301

@oyvindlr

Description

@oyvindlr

The idea of downsampling is to speed up the painting by having fewer data points. But when there are sufficiently many points in view, the downsampling-processing itself slows down the updating significantly (except when using the subsampling method).

A possible fix may be to keep a cached version of the downsampled data. This would work well for fixed downsampling, but for auto-mode it becomes a bit more complicated. One could possibly create a cached version at a new "maximum" downsampling rate, which is always used as long as the amount of data in view is greater than some threshold, where the threshold should take into consideration the tradeoff between painting many points and downsampling processing. Below this threshold, one would keep the current downsampling method, which is fast enough for smaller amounts of data.

By the way, this is an issue that becomes way more pronounced when there are multiple plotDataItems in the plot, even with the same total amount of points. Enhancements as discussed in #2777 would be highly welcome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions