algorithmic modeling for Rhino
Hello all,
I have written a component that spawns a new thread for heavy calculations since I did not want to lock up the GH UI until the calculations complete.
However, this workflow introduces some problems in connection with Galapagos. Since Grasshopper keeps solving the solutions downwards Galapagos immediately evaluates the output without waiting for the heavy calculation to complete.
Is there a good way to make Galapagos wait until the thread is completed?
Tags:
No.
--
David Rutten
david@mcneel.com
Tirol, Austria
Keep the threading inside a component, and only give back a solution once the thread is finished. This can allow you to do multithreading, and keep the peace with the grasshopper way of things.
A different approach would be to write your own genetic algorithm.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by