Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Particle Attachment Break Didn't work in GPU Mode
#1
Particle Attachment break threshold didn't work in GPU Mode, I have some test, turn out if only set the break threshold smaller that 0(like -1) will break immediately, even set to 0 I still can't brake in anyway.
but work very well in Burst(Cpu), which is weird, my best guest is some pin Batch value didn't update in real time to check if need to break, hope it help somebody else facing same problem.
Thanks for you guys always being amazing!
Reply
#2
(17-11-2024, 06:55 PM)calvantsang Wrote: Particle Attachment break threshold didn't work in GPU Mode, I have some test, turn out if only set the break threshold smaller that 0(like -1) will break immediately, even set to 0 I still can't brake in anyway.
but work very well in Burst(Cpu), which is weird, my best guest is some pin Batch value didn't update in real time to check if need to break, hope it help somebody else facing same problem.
Thanks for you guys always being amazing!

Hi,

Thanks for reporting this! I could reproduce the issue. Will get back to you with a patch asap.

kind regards,
Reply
#3
Hi,

Fixed the issue. Attached you'll find the following 3 files:
- Obi/Scripts/Common/Backends/Compute/Solver/ComputeSolverImpl.cs
- Obi/Scripts/Common/Backends/Compute/Constraints/Pin/ComputePinConstraints.cs
- Obi/Scripts/Common/Backends/Compute/Constraints/Pin/ComputePinConstraintsBatch.cs

Replace the ones in your project with these, that should solve the problem.

let me know if you need further help,

kind regards


Attached Files
.cs   ComputeSolverImpl.cs (Size: 71.55 KB / Downloads: 1)
.cs   ComputePinConstraints.cs (Size: 1.52 KB / Downloads: 1)
.cs   ComputePinConstraintsBatch.cs (Size: 7.26 KB / Downloads: 1)
Reply