Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Obi fluid collision
#3
(06-03-2021, 09:41 AM)josemendez Wrote: Remove the Debug.Log. Writing to the console is really slow, and your code does it once per contact, every frame.

Let me know if that improves it Sonrisa

Edit: didnt realize you’re unsubscribing from the collision event inside the contact loop, so the debug.log might not be the cause. also check how many times is FixedUpdate() being called per frame. You can easily see this in the profiler. If it’s more than once, you might be suffering from death spiralling (discussed often in this forum). Let me know how it goes.
I already checked and fixed update is only called once, I think it happens because it is called by all the particles that make up my fluid even though it is not performing a function when it collides with the container it is detecting it and it is what generates the lowering of frames, is there a way that it doesn't detect collisions with the container? I need it to collide but the event is not fired with the container
Reply


Messages In This Thread
Obi fluid collision - by JskT01 - 06-03-2021, 02:51 AM
RE: Obi fluid collision - by josemendez - 06-03-2021, 09:41 AM
RE: Obi fluid collision - by JskT01 - 06-03-2021, 09:51 PM
RE: Obi fluid collision - by josemendez - 08-03-2021, 08:24 AM
RE: Obi fluid collision - by JskT01 - 08-03-2021, 07:05 PM
RE: Obi fluid collision - by josemendez - 09-03-2021, 11:27 AM
RE: Obi fluid collision - by JskT01 - 09-03-2021, 09:53 PM
RE: Obi fluid collision - by josemendez - 10-03-2021, 09:05 AM
RE: Obi fluid collision - by JskT01 - 10-03-2021, 07:55 PM
RE: Obi fluid collision - by josemendez - 11-03-2021, 09:02 AM