Is there any ways to avoid RectangleGraphics flash?

When I update the RectangleGraphics’s material, the entity (rectangle) has a brief flash( or
said it disappear and appear).
rectangle.material = this._heatmap._renderer.canvas;

Is there any ways to avoid that?

Hi @mwhei

Would you be able to share a Sandcastle that reproduces this issue?

Thank you.
The demo is as follows.

@mwhei Since the geometry is computed in workers, there’s a slight delay in the generation and rendering of the new entity. A possible solution may be to generate two entities and switch between the two by toggling their show property.