Inacceptable slowdowns when using bufferGeometry tag #1829
-
Good afternoon,
Basically, I calculate the mesh using the meshFrom function, holding the returned value with useMemo, then I pass this component as children in the parent one:
Now, anytime the parent rerenders, I experiment slowdowns, as if the Composite always recomputes the bufferGeometry, even when it does not change. Instead, if I use directly a primitive tag like that:
then there are no slowdowns. Can you explain me the difference? In both cases I represent a mesh I've already computed earlier. Hope someone can help me. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
that is too little information. i dont know what meshFrom is nor if entity.baseElements is stable. it seems weird to inject geometry like that. why not |
Beta Was this translation helpful? Give feedback.
that is too little information. i dont know what meshFrom is nor if entity.baseElements is stable. it seems weird to inject geometry like that. why not
<mesh geometry={someGeometry}>
?