13-01-2022, 11:36 AM
(This post was last modified: 13-01-2022, 11:39 AM by josemendez.)
(13-01-2022, 11:04 AM)cycle6 Wrote: Ohhhh!!! so there's no class called Constraint!? Nice, that's all I needed.
I was looking at the codes like particleIndices[index * 2] and I was thinking: that's odd ... ly strange.
But I never thought that means you're paring em through that way. Now that totally make sense to me.
Thx a lot mate
You're welcome
![Sonrisa Sonrisa](https://obi.virtualmethodstudio.com/forum/images/smilies/smile.png)
(13-01-2022, 11:04 AM)cycle6 Wrote: Ohhhh now I get it!!! That's why in a single batch there's no two adjacent constraints connecting to the same particle!! because you don't want store the same particle more than once in the same batch?!! Dawg, that's pretty smart!!!
Exactly! that way all constraints in each batch can be processed in parallel with no need for thread synchronization, because it guarantees two threads cannot modify the same particle simultaneously and step on each other's toes.
If you're curious about it, batches are generated when you create the blueprint using graph coloring.