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

Effect is not applied after 16 images #14

Open
Sandalf opened this issue Aug 25, 2019 · 4 comments
Open

Effect is not applied after 16 images #14

Sandalf opened this issue Aug 25, 2019 · 4 comments

Comments

@Sandalf
Copy link

Sandalf commented Aug 25, 2019

I'm using this effect on multiple images and it seems to only handle up to 16 images at the time.

The root of the cause seems to be this warning.

Too many active WebGL contexts. Oldest context will be lost

This answer in stackoverflow suggests that only one WebGLRenderer should be used.

I updated the source code to declare the renderer outside of the constructor but the effect only gets applied to one image.

Does anyone else gets this error?

@Nikolasgrizli
Copy link

Does anyone else gets this error?
yeap, the same problem((

@christiaen-francois
Copy link

Does anyone else gets this error?
Yes! And I don't have the solution :( Any idea ?

@mccicorp
Copy link

Same issue here. Tried using it with a grid of images and it throws the "Too may active WebGL contexts" error after 17 instances are added.

@robin-dela do you know of a workaround for this?

@robin-dela
Copy link
Owner

Hey,
As suggested in the first message the library should be rewritten to handle more images using only one webgl renderer instead of initiating a new one for each new effect. However, I'm unfortunately not working or maintaining this anymore, but feel free to open a pull request if you feel like fixing this and I would happily merge it.

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

5 participants