annakrystalli / Morphospace_explorer

https://sheffield-university.shinyapps.io/morphospace-explorer/
0 stars 0 forks source link

Integrate RGL viewer (instead of pop-up) #2

Closed annakrystalli closed 2 years ago

annakrystalli commented 2 years ago

Done but slow. See https://github.com/dmurdoch/rgl/issues/4

Options:

annakrystalli commented 2 years ago

So! In the end there was a much simpler fix to the problem! Due to some data reshaping required before plotting each beak, the original code was extracting and rendering each segment of each beak (75 for each) individually in a for loop, effectively running the most expensive function 75 times per beak.

Can't believe I missed that! 🙈 . In any case I know all the beak coordinates first and then render the whole beak in a single segments3d, and it's as fast as! No fancy methods required! 🎉