hover-effect icon indicating copy to clipboard operation
hover-effect copied to clipboard

Effect is not applied after 16 images

Open Sandalf opened this issue 6 years ago • 4 comments

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?

Sandalf avatar Aug 25 '19 17:08 Sandalf

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

Nikolasgrizli avatar Nov 04 '20 11:11 Nikolasgrizli

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

christiaen-francois avatar Nov 04 '21 09:11 christiaen-francois

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?

mccicorp avatar Feb 21 '23 20:02 mccicorp

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.

robin-dela avatar Feb 22 '23 02:02 robin-dela