Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Bad Performance in Build Mode
#12
Hi there!

The cause for bad performance is simply that you have way too many colliders: every individual lamppost, wall, bush, etc is a ObiCollider in your scene. There's around 2000 of them. Even though Obi uses spatial partitioning to prune out distant colliders and collision resolution for nearby colliders is done in parallel, it still needs to check if they need to have their data copied to raw arrays every frame/copy their data, so that they can be processed in parallel.

This checking/copying is what's eating up most of your time away, as evidenced by the profiler: ObiColliderWorld.UpdateWorld takes 9.69 ms out of a total of 10 ms. (The rope simulation itself is barely visible in the timeline, so simulation is not an issue).

[Image: mqmBMda.png]

Solution: either limit the amount of colliders present at once (tile your world and only load colliders in the current tile), or merge colliders together. Simply merging chunks into a MeshCollider or a DistanceField will improve performance a lot.
Reply


Messages In This Thread
Bad Performance in Build Mode - by xeetsh - 15-07-2021, 12:58 PM
RE: Bad Performance in Build Mode - by josemendez - 15-07-2021, 01:08 PM
RE: Bad Performance in Build Mode - by xeetsh - 15-07-2021, 01:42 PM
RE: Bad Performance in Build Mode - by josemendez - 15-07-2021, 01:47 PM
RE: Bad Performance in Build Mode - by xeetsh - 15-07-2021, 03:20 PM
RE: Bad Performance in Build Mode - by josemendez - 15-07-2021, 03:38 PM
RE: Bad Performance in Build Mode - by xeetsh - 16-07-2021, 09:48 AM
RE: Bad Performance in Build Mode - by josemendez - 16-07-2021, 10:31 AM
RE: Bad Performance in Build Mode - by xeetsh - 16-07-2021, 01:46 PM
RE: Bad Performance in Build Mode - by josemendez - 16-07-2021, 02:30 PM
RE: Bad Performance in Build Mode - by xeetsh - 17-07-2021, 09:33 AM
RE: Bad Performance in Build Mode - by josemendez - 19-07-2021, 08:27 AM
RE: Bad Performance in Build Mode - by xeetsh - 26-07-2021, 10:15 AM