Grid performance optimization

Hi folks,

I’ve noticed some performance degradation when rendering diagrams with a grid in the background. There’s a noticeable framerate drop when panning the viewport even with the default GoJS grid:

diagram.grid.visible = true;

Diagram with default grid - diagram without a grid

Aside from rendering fewer shapes and increasing the grid size, do you have any tips about how to speed things up?

There does seem to be a problem here, and we’ll investigate, though we cannot promise a timeline for optimizing the grid.