Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Manual fluid emission throw exception with Compute backend
#2
Hi there,

The compute backend requires adding/destroying particles at a specific point in the solver's update cycle, can't be emitted at any time. EmitParticle() and KillParticle() can only be called in the solver's OnSimulate event.  This is because data on the CPU is sent to the GPU only once per frame, so modifying data on the CPU after it's been send to the GPU will result in both getting out of sync.

This isn't documented yet, so we'll make sure to mention it in the manual in the relevant places. We'll also look into adding a proper error message when attempting to do this.

thanks for reporting the issue!
Reply


Messages In This Thread
RE: Manual fluid emission throw exception with Compute backend - by josemendez - 02-02-2024, 09:53 AM