Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Possible memory leak?
#3
Here is the game after 5 minutes in the editor (I just start the scene, don't interact with anything), with the Obi solver disabled (and the 3 clothes):
   

The numbers stay mostly stable all that time.

And after that I enable the Obi solver and the clothes, and run the scene for another 5 minutes:
   

Those are the numbers after 5 minutes.

More info:
- If I use the Oni solver instead of Burst the leak doesn't happen.
- When using Oni, the previous NaN error can still happen for some objects, but only for one frame (not every frame like with Burst).
- The speed of the leak seems proportional to the number of clothes enabled.

My Burst (Jobs) config in the editor:
- JobsDebugger off
- Leak Detection Off
- Burst: Safety Checks Off
- Burst: Native Compilation
- Burst: Synchronous Compilation

Some packages:
- Burst 1.4.6
- Jobs 0.2.10-preview.13
- Collections 0.9.0-preview.6
- Mathematics 1.2.1

In general my non kinematic physic objects have a renderer, a collider, a rigidbody, an Obi collider, an Obi rigidbody and one script that I use to define "buoyancy" info for when the objects fall in my water zones (it doesn't have an Update, only a Start() to define some variables).
There are also kinematic physic objects and zones with triggers, to apply different type of forces to the non kinematic objects and the players.
There are only a few non kinematic objects attached with static joints, at the start of the scene.
But in general most of the objects start in the scene isolated from other forces (until the player start interacting with them).

I think is possible that there is something wrong in my scene, because of the error. I hope to have time on the weekend to try to reproduce this in a smaller scene.

I have the Memory Profiler package installed, but have not been able to play much with it yet.
Reply


Messages In This Thread
Possible memory leak? - by LogaNRV - 24-03-2021, 03:11 AM
RE: Possible memory leak? - by josemendez - 24-03-2021, 08:54 AM
RE: Possible memory leak? - by LogaNRV - 25-03-2021, 03:07 AM
RE: Possible memory leak? - by josemendez - 26-03-2021, 08:59 AM
RE: Possible memory leak? - by LogaNRV - 27-03-2021, 02:15 AM
RE: Possible memory leak? - by josemendez - 29-03-2021, 09:57 AM
RE: Possible memory leak? - by LogaNRV - 29-03-2021, 11:04 PM
RE: Possible memory leak? - by flintza - 13-01-2022, 01:24 PM
RE: Possible memory leak? - by josemendez - 14-01-2022, 08:48 AM
RE: Possible memory leak? - by litefeel - 07-03-2022, 01:13 PM
RE: Possible memory leak? - by josemendez - 07-03-2022, 01:23 PM
RE: Possible memory leak? - by SpiralCircus - 14-03-2022, 02:27 PM
RE: Possible memory leak? - by josemendez - 14-03-2022, 02:38 PM
RE: Possible memory leak? - by SpiralCircus - 14-03-2022, 02:57 PM
RE: Possible memory leak? - by josemendez - 17-03-2022, 09:38 AM