Skip to content

Add redrawReglTraces subroutine - #3067

Merged
etpinard merged 7 commits into
splom-perffrom
redraw-regl-traces-subroutine
Oct 2, 2018
Merged

Add redrawReglTraces subroutine#3067
etpinard merged 7 commits into
splom-perffrom
redraw-regl-traces-subroutine

Conversation

@etpinard

Copy link
Copy Markdown
Contributor

resolves#2562, to be merged into #3057 to addressed @alexcjohnson 's #3057 (comment)

In brief, this PR makes regl-based traces coexist better. All their "draw" calls are done in one single subroutine. This preserves ordering and makes it easier to redraw the canvas on drag and selections. For now on, regl-based traces (excluding parcoords) only update their buffers during _module.plot and do not do any "drawing".

cc @dy@archmoj@antoinerg

- which (re)-draw scattergl, scatterpolargl, splom traces as well as
splom regl grid line in one go, always in the correct order
- packaging these gl draw calls in one subroutine is especially
useful for drag and selections, where buffers of targeted traces/scene
are updated, but *all* traces need to be redraw following clearGlCanvases
... no need for this now that we have redrawReglTraces
- no longer need _module.styleOnSelect!
- selections on overlaid subplots now work!
- remove clearViewport (for now), we could bring it back
again to optimize selections on disjoint subplots.
@etpinardetpinard added bug something broken type: maintenance labels Oct 2, 2018
@etpinardetpinard added this to the v1.42.0 milestone Oct 2, 2018
@etpinardetpinard mentioned this pull request Oct 2, 2018
Comment threadtest/jasmine/tests/plots_test.js
Comment threadsrc/plot_api/subroutines.js
@alexcjohnson

Copy link
Copy Markdown
Collaborator

Beautiful cleanup @etpinard - dunno if you want someone better versed in the regl code to weigh in, but from my standpoint this is ready to 💃 !

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugsomething broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@etpinard@alexcjohnson