robin-dela / hover-effect

Javascript library to draw and animate images on hover
MIT License
1.8k stars 304 forks source link

Too many active WebGL contexts #23

Open nixks opened 4 years ago

nixks commented 4 years ago

Hi,

I am using hover effect in wordpress posts and load more functionality. Everything works fine up to a point where more than 12 objects (with hover effect) are loaded. At that point the old objects get deleted and the console informs me with the following...

WARNING: Too many active WebGL contexts. Oldest context will be lost.

How can I create multiple instances of three.js so that I can avoid this conflict with hover.js? Any ideas?

Thanks!

Pixelous commented 4 years ago

Hi, looks this is the browser limitation. @robin-dela can you take a look? https://stackoverflow.com/questions/33959538/display-multiple-instances-of-three-js-in-a-single-page/33979227#33979227