Making the library faster #338
Replies: 5 comments 3 replies
-
Ah, we already tried to accelerate this as much as we can, so there is probably no low hanging fruits. Precision doesn't really affect the performance except for SDF. We can probably try to use the SIMD sort to replace some of the sorting calls, but even if that can help, it will only affect large meshes. If you want to, you can tell us your use cases, ideally with a demo code, so we can see where is the bottleneck. |
Beta Was this translation helpful? Give feedback.
-
Oh what I exactly need is to make the triangularization faster. (The function converting manifold to mesh) I think the triangularization will be accelerated if we can control the ideal length of the triangle meshes. How can I control this? I think the SDF part is what I need I guess? How to you guys decide the number of vertices or length of edges when converting manifold to mesh? To elaborate more, I need rapid mesh boolean operations and get the volume of the results. Do you see any improvements in this pipeline. (Doesn't matter if it fails to triangularize really small intersections or any) |
Beta Was this translation helpful? Give feedback.
-
Oh triangulation... It is known that the triangulation algorithm is not fast and does not benefit much from parallelization. I don't have much idea about this. What I know is that the algorithm is different from other commonly used triangulation algorithms, will produce skinny triangles, but is more robust when encountering self intersection or something. @elalish What do you think? |
Beta Was this translation helpful? Give feedback.
-
Thinking about it, if your models don't have much overlap, maybe you can try to do intersection instead of union/subtraction for volume calculation, as the mesh may be smaller with intersection. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the thoughts! But what I need to calculate is volume of boolean union of many meshes... But maybe those kind of optimizations might work in such setup! |
Beta Was this translation helpful? Give feedback.
-
Is there a way to accelerate this library? It doesn't matter if the precision of volume or other meshes get slightly lower. Is there something I can control like the precision and get speed up? I can modify in a code level for only my use.
I already tried the parallelization but didn't help. (It more likely made it slower) Because what I need is rapid small calculations not speeding up one large calculation.
Beta Was this translation helpful? Give feedback.
All reactions