Physics performance [ bug or not ?]

I test performance of physics with new beta 12.
My test is 500 ribigbody kinematic with sphere trigger collider and one child with a sphere trigger collider.
Rigidbody can only detect child because of layer.

So after the first frame, nobody moving. And physics continue to take huge time avr 8ms.

So bug or normal ?

And it’s worse of course when I move all gameobject ( I use DOTween for moving GO)

What do you think ?

1 Like

What should move in your first test, if there are only kinematic rigidbodies and trigger collider? There is nothing physics should do in that case, kinematic rigidbodies are not affected by physics and trigger collider won’t collide with anything, they are just “trigger”, for example if you want to have a box as a room, to trigger a function when the camera enters the room.

In my fist test, I move nothing at all.

And trigger collide with rigidbody trigger, all my game works like that.

using UnityEngine;
using System.Collections;
using DG.Tweening;

public class fffffffff : MonoBehaviour
{
    public bool me;

    void Awake()
    {
        if (!init)
        {
            init = true;
            for (int i = 0; i < 500; i++)
            {
                Instantiate(gameObject, Random.insideUnitSphere * 60, Quaternion.identity);
            }

            Destroy(gameObject);
        }
        else
        {
//desativate this line for desactivate movement
            GetComponent<Rigidbody>().DOMove(Random.insideUnitSphere * 60, 15F, true).SetLoops(-1, LoopType.Yoyo).Play();
        }

    }

//for force physics to call this
    void OnTriggerEnter(Collider c)
    {

    }

    void OnTriggerExit(Collider c)
    {
    }



    private static bool init = false;
}

Yup, same problem here, would be nice if someone from physx developers commented this, because for looks like in some situations we have worse physx performance than in unity4. Anyone knows someone from nvidia physx? Because Im afraid Unity guys can’t help us with this.

Actually unity can and does help with this. Unity has a direct line to nvidia, and a direct contact with the engineers on physx, so they are by far the best people to contact with this issue, and Unity has even said they will do so if given the required data. Report a bug with this test.

OK I will do. I was not sur that bug but if you confirme …

Edit: Done

Case #646407

News ( I can not edit my report bug ) : I have test in Unity 4.6 RC2 and I have not this problem so it’s purely 5.0

Ok thank you for your report, the team will look into it :slight_smile:

You can’t edit the report, but you can reply to it to update it with more information.

You really shouldn’t post links to your FogBugz URL.

Why ?

Because links to all your other cases are at the bottom of that page, and someone can easily look there and if you have any links to source code or projects for repos they can download it.

1 Like

oh, I see. Thanks

Plus personal address in real life, phone numbers, credit card statements.

Not really :slight_smile:

1 Like