Quantcast
Channel: Grasshopper Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 3656

C#. Ways of improving calculation time of scripted components

$
0
0

Hi everyone,

I don´t have much of a background in scripting and have been slowly trying stuff out.

So here is my question, I have coded a component to iteratively subdivide a Mesh. The thing is that the resulting component is extremely slow. I know it is exponential in every iteration but still after 4 or 5 iterations it becomes practically unusable because it crashes when it really shouldn’t. I know that the way that I wrote is not the best so I am uploading it to see if anyone can give any suggestions as to how to improve its efficency and calculation time.

Thanks in advance.

Scripting in C.gh (7.2 KB)

5 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 3656


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>