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

Component takes longer than expected

$
0
0

Hi all, @DavidRutten,

I’m blind again without knowing what’s going on under the hood. I have a component that encapsulates a particle solver and if I measure what it takes on my own it is much less than the actual time it takes in GH and that show up on the profiler.

My measurement shows:

Component took 69 ms.
  BeforeSolveInstance took 0 ms.
  SolveInstance took 68 ms.
    Inputs took 4 ms.
    Solve took 58 ms.
    Outputs took 5 ms.
  AfterSolveInstance took 0 ms.
Stopwatch: 72 ms.

but in GH it takes 4.1 seconds!
dfasdgfasfg

For details, this is the component code. I have attached a normal stopwatch to prove that my custom nested stopwatch (RunningTime) it does not fail.

Something is happening to make such a big difference and I have no idea what it could be. Can someone shed some light so I can prove something?

Thanks.

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 3655

Trending Articles



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