patrickfuller / imolecule

An embeddable webGL molecule viewer and file format converter.
http://patrickfuller.github.io/imolecule/
MIT License
86 stars 18 forks source link

Displaying many structures in one notebook #26

Open CorySimon opened 8 years ago

CorySimon commented 8 years ago

It seems that only ten visualizations will display at once. e.g. when I display 15 structures, the screen is blank for the first 5. How do I overcome this limitation?

patrickfuller commented 8 years ago

Thanks for opening the issue!

This is related to #23. The issue is that your web browser has a maximum amount of webGL renderers (~10), and each imolecule drawing is currently its own renderer.

I have some ideas for workarounds, such as hot-swapping renderers with static images. I'm going to try these out when I get the time.