Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

[Cloth] Sudden cloth performance issues in AR

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

  1. unity_V16sPb0I8SVOuw

    unity_V16sPb0I8SVOuw

    Joined:
    Apr 1, 2019
    Posts:
    10
    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