Skip to content

context creation #4

@freeman-lab

Description

@freeman-lab

I think something is not quite right with how the regl context is created/destroyed. To see this, if you open the demo and then repeatedly toggle the theme, you'll eventually see a warning that "too many WebGL contexts have been created". Indeed, this context creation step is getting called over and over, which would be fine if we were destroying the context previously, which I thought we were here?

Might be interesting for @katamartin to look at this, as I copied the same pattern we had in @carbonplan/maps, so I'm now wondering if the same thing is happening there?

Not sure how to fix, and this doesn't affect functionality, but surely at some point will affect performance, so would be good to track down.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions