Search Issue Tracker

Active

Votes

17

Found in

2018.4.0f1

2018.4.4f1

2019.1.0a1

2019.2.0a1

2019.3.0a1

Issue ID

1173457

Regression

No

Cloth performance drops when increasing the number of GameObjects with Cloth and then decreasing it

Physics

-

How to reproduce:
1. Open the attached project (case_1173457.zip)
2. Enter Play Mode
3. Set the "Active" Cloth slider to 2 > observe FPS
4. Set the slider to 48 > set back to 2

Expected result: FPS value is the same as it was in step 3
Actual result: FPS value decreases twice

Reproducible with: 2018.4.6f1, 2019.1.14f1, 2019.2.1f1, 2019.3.0a11

Notes:
- Could not reproduce on 2017.4.31f1 because of Console errors
- There is a slider offset in newer versions, to reproduce efficiently - mouse pointer needs to be put above the slider to use it
- FPS value drop depends on the computer - can vary from 2x times drop to 4x or even more

Comments (2)

  1. 81b587a1060ff43a54230092337f8090?d=mm

    TacticalShader

    Apr 23, 2020 12:24

    If every cloth but one are frustum culled, the simulation cost is the same as if all the clothes are simulated. This can be tested by disabling all the culled clothes and noticing the cost in the profiler.

  2. 192fbeb6185840da2cfcbf62c15c9ecd?d=mm

    NathanRH

    Aug 14, 2019 09:15

    This issue makes it almost impossible to have many complex cloth characters. Please fix :)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.