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

getting "too many webgl contexts" warnings #3

Open
monemihir opened this issue Jul 19, 2017 · 2 comments
Open

getting "too many webgl contexts" warnings #3

monemihir opened this issue Jul 19, 2017 · 2 comments

Comments

@monemihir
Copy link

monemihir commented Jul 19, 2017

Not sure how to solve this.

I currently have tiled geotiffs that I would like to plot on the map. There are between 20-90 tiles depending on various scenarios.

After plotting about 10-12 tiles, every subsequent call throws "too many webgl contexts" warning on all browsers.

Also noticed that the calls made to the plotty library are different in draw and reset functions. One passes useWebGL: false and the other doesn't.

@stuartmatthews
Copy link
Owner

This seems to be a common problem with WebGL contexts not being cleaned up by the GC. A simple fix might be to put useWebGL: false after line 175 in _preLoadColorScale.

    clampHigh: this.options.clampHigh,
    useWebGL: false
});

Can you please see if this works for you?

I plan to do a new version soon which uses WebGL properly as plotty gets quite slow for large files if WebGL is not used.

@cpfreitas
Copy link

I'm getting this warning, how can I solve?

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

No branches or pull requests

3 participants