When to use scattergl

Is there any documenation / information about when to use scattergl vs scatter in plotly.js considering performance. What’s a good cutoff for number of points plotted and keeping in mind having other options set such as color/size/shape?
The svg plots looks nicer on a screen but want to switch to WebGL only if I need to.