Solid difference making grasshopper script very slow

Hello,

I’m working on a building facade in grasshopper. I will include some pictures so you have a general idea of what I’m trying to recreate since my scipt is a bit messy (first time using grasshopper).
The problem I encounter is that my sliders are extremely unresponsive and it can take up to 5 minutes to load the new value. That is extremely annoying and I dont really know what is causing this extreme slowdown, my hardware should be fine. I did enable the performance monitor and it showed me that 1 component, solid difference, is taking very long to load. I dont really know why that component in particular takes so long or how I can decrease that loading time.

What can I do to reduce loading times?
Thanks!


download

GH gevel.gh (32.5 KB)

1 Like

The pro way is to define an instance definition (or some more) and then place it in 3d space using plane to plane transformations (that’s what the Orient does). This requires code (C# in my case). Instances are also critical when at some moment you may need a BIM AEC app to handle the project (as is also the pro way).

For that type of stuff expect a dramatic reduction in elapsed time with regard post instance actions (placing that is). For delays during the parametric definition of similar things (especially “solids” due to boolean ops and the likes) remember that Rhino is not a solid modeller.

However and for big N of instances and depending on the object complexity you may as well encounter GPU related delays (a NVidia Kepler Quadro 4/5/6xxx does wonders … but is rather expensive).

Isn’t it tolerable if it takes about 27.3 seconds? Installing Data Dam in front your bottleneck would help you to adjust your parameters…


GH gevel_re.gh (38.2 KB)

1 Like

Thanks you, the data dam helped me a lot.

I also moved my geometry towards 0,0,0 and I use meters now instead of millimeters ad adjusted te whole object so that its much smaller.

I can use my sliders now and the total calculation time is around 6 seconds! much better.

Edit: I don’t really understand how you got the data dam component with 2 input parameters, when I try it myself I only have 1 input parameter.

If you look at the component more closely, then there are little “+” signs on it and you can click them to expand to get more inputs, just like Addition or Multiplication.

Oh thanks, somehow I totally missed that…

Problem solved :slight_smile: