Skip to content
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

Shared WebGL-context implementation to partially fix ecomfe/echarts-gl#439 #440

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

mweerden
Copy link

@mweerden mweerden commented Feb 1, 2022

This largely fixes issues with lost WebGL contexts by sharing a single renderer for all plots and layers and recreating the renderer when the context is still lost.

Before, GL layers were completely lost and broke interactivity of plots when the context was lost. Now layers will stay as they were and the context is recreated on the next render. User should notice at most a glitch if the rerendering is heavy or there is some animation.

Main open issue left is that some 3D plots will lose textures/effects when the context is lost (typically after the next rerender). For example, test/surface-metal.html show this. To see, use test/multi.html, trigger losing of context and interact with the 'metal' plot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant