#BuildPhysicsWorld idle step takes ages

1 messages · Page 1 of 1 (latest)

little quiver
#

I've got 2 entities on my stage that has physicsbody and physicsShape components on them - both a simple capsule. When they're both on the stage, I get major performance issues and it appears to be coming from the idle step of the BuildPhysicsWorld system.

Attached is the the profiler for it. That idle step takes up 95% of the time in a frame, and pushes the step to take over 3000ms

When I start the game, I can only get maybe 2 or 3 seconds into the game before it all becomes too slow to continue.

Anyone got any ideas on where I can start looking?

frank agate
#

Look at the timeline view to see what the actual issue is

#

it's completing a job

little quiver
#

Here is the timeline view - where should I be looking? it doesn't seem to reveal anything more from what i can see:

frank agate
#

look at your job thread

#

you have a very slow, unbursted job

urban sentinel
#

what's this?

little quiver
#

ah indeed it was a job that ran within the FixedStepSimulationSystemGroup. Thanks for pointing me in the right direction you guys.

little quiver
#

Is there any ECS directed videos you guys would recommend on how to read/get more out of the unity profiler?

frank agate
#

Bursted code appears green