flekschas / regl-scatterplot

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

Flikering when reload the scatter plot #158

Closed masalinas closed 1 year ago

masalinas commented 1 year 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 1 year 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.