flekschas / regl-scatterplot

Scalable WebGL-based scatter plot library build with Regl
https://flekschas.github.io/regl-scatterplot/
MIT License
184 stars 21 forks source link

Flikering when reload the scatter plot #158

Closed masalinas closed 8 months ago

masalinas commented 8 months ago

I am implementing an app in angular to load several points from elasticsearch. I have a problem when load any second index for example, because everythins looks ok, but when pass the pointer over the canvas some flikering with the previous index data appered as you see in the video. What can be the problem?

When reload data in the plot I code this lines:

    this.scatterplot.clear();
    this.scatterplot.draw(this.pointSamples);

https://github.com/flekschas/regl-scatterplot/assets/1216181/89a579a1-8933-4249-9637-54f2b15032f4

masalinas commented 8 months ago

Finally I resolved the problem, it was an issue from my side, I was reconfiguring all the time the scatter plot all the time.