Skip to content

Improve Heatmap rendering performance when zsmooth is false #6573

Closed
@lvlte

Description

@lvlte

The idea is to use the zsmooth="fast" rendering method, which is currently faster than without smoothing (imageData pixel array vs fillRect), whenever possible, and tell the browser to not interpolate when zsmooth is false.

The condition is that all bricks should be uniform (ie. linear axes, linear scales, no gaps), so the proposition doesn't come as a replacement for the fillRect loop.

Here is a codepen that illustrates what I mean.

The performance gain becomes significant when used with sliders, as discussed here, and here.

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