-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression bug fix of scatter2d traces not to change other traces colors #3315
Conversation
package.json
Outdated
@@ -103,7 +103,7 @@ | |||
"regl": "^1.3.7", | |||
"regl-error2d": "^2.0.5", | |||
"regl-line2d": "^3.0.12", | |||
"regl-scatter2d": "^3.0.6", | |||
"regl-scatter2d": "git://github.com/gl-vis/regl-scatter2d.git#22c218464af8a50a0fbbd8e6a983edb24f21fdab", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you ran any benchmarks comparing with-palette and w/o palette performance? I'd be ok (not sure I'm @dy would be though) merging this thing if performance slows down by "a little", but I'd like know by how much. |
old: 4730.064ms var i, RGBA = [], X = [], Y = []; |
And using a code that only generates var i, RGBA = [], X = [], Y = []; |
The benefit here is not performance, but memory optimization - for <= 256 colors we require a single |
Closed in regard with #3328. But I prefer not to delete the branch for further improvements. |
Fixes #3232 and https://github.com/plotly/phoenix-integration/issues/232 by disabling unstable palette color algorithm in regl-scatter2d.
Although some improvements are made in another branch and PR; that still requires more rewrites and possibly passing two palettes to the shaders.
While this could be a very annoying bug for Plotly users, this PR disabled the buggy palette mechanism in the module so that it may be fixed in the next minor version.
Also few other minor improvements are made in the
regl-scatter2d
module.@etpinard
@alexcjohnson