Drei's "Html" component is not performant for large numbers #3130
Unanswered
SrinivasPrabhu794
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In my r3f scene, I have a lot of text (sometimes more than 2500). Initially, I rendered them using Drei's Text component but the performance was really bad.
After that, I switched over to using Drei's Html component as div +
tags to show my text labels. For small number's the Html component works fine but for large numbers of Html component's the performance is not good at all.
Is there a way to optimize the performance of 2000+ Html components in an r3f scene ? Make them display: "none" at run-time also does not help. Or should I work with CSS3DRenderer directly ?
Beta Was this translation helpful? Give feedback.
All reactions