You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specifically the call to context.drawImage: context.drawImage(this.renderer.domElement, 0, this.canvas.height - heightDPR, widthDPR, heightDPR, 0, 0, widthDPR, heightDPR); is very slow in Firefox making the model viewer not very usable.
@gregtatum Yes, unfortunately this is something we have been aware of. We also have plans to fix it for various scenarios (#216, #37). I think ideally this particular use case would be addressed by #216. In that case, we would detect that only one <model-viewer> is being used, so we would not bother with the 2D API.
For context, the reason why we invoke drawImage like that is to get around the browser limitation of number of GL contexts that can be created in one session.
Activity
cdata commentedon Oct 22, 2019
@gregtatum Yes, unfortunately this is something we have been aware of. We also have plans to fix it for various scenarios (#216, #37). I think ideally this particular use case would be addressed by #216. In that case, we would detect that only one
<model-viewer>is being used, so we would not bother with the 2D API.For context, the reason why we invoke
drawImagelike that is to get around the browser limitation of number of GL contexts that can be created in one session.