Open pkgw opened 5 years ago
This is related to a switch between showing markers individually and a raster map, when there are enough points. I agree the switching shouldn't happen frequently like this.
@slowe has been exploring the possibility of using WebGL which might help make the switching unnecessary, so I'll discuss with him what the best way forward is.
Agreed that probably switching should happen less often, but the size difference is quite large — is it somehow not possible to make the marker sizes align between the two rendering methods?
Also, FWIW, @augustfly mentioned to me that he's seeing generally severe performance problems with this example plot on Chrome/macOS. If he's not being bitten by some extremely unusual circumstance, that might be another reason to look into WebGL.
Actually the switch isn't it going to a raster map. That only occurs during a zoom. The rendering after zoom was given two modes because there had been a complaint that the rendering could sometimes be too slow. The simple render kicks in if it is too slow. You are getting oscillations between the two types of render as the processing time must be near the transition point. I could just remove the "quick" render to stop this.
When I use the timeseries plots in Firefox (69.0.1, running on Linux), the sizes of the markers jump around when I pan and zoom, as in this animated GIF:
If I zoom in and out enough, the flashing seems to stop, with the markers settling on the larger point size. @augustfly sees the same thing in Firefox on Mac.
This is a pretty unpleasant effect while it happens.