Skip to content

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.

1 participant