Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

[Cloth] Sudden cloth performance issues in AR

Discussion in 'Physics' started by unity_V16sPb0I8SVOuw, Sep 10, 2019.

  1. unity_V16sPb0I8SVOuw


    Apr 1, 2019
    Hi, I am trying to place flags in AR using AR Foundation (Unity 2019.1.5f1). The performance of my application drops to 0.1 FPS as soon as I have more than four flag prefabs in the scene that have the Cloth component enabled.

    The number of objects instantiated has no effect, so for instance if I only enable the Cloth on the US flag and instantiate it 5x, everything runs smooth. But as soon as I enable Cloth on the French, US, Spanish and UK flags and instantiate just one of them, the performance sinks. Disabling the Cloth at runtime smoothens everything out again. To add to it, sometimes the performance bugs even if there are fewer than four prefabs with Cloth.

    Is this an issue with Unity or is there something I can do improve the performance? As it stands, this means that I can only have a few types of flag animated..

    Many thanks