Search Issue Tracker

Fixed in 2022.1.X

Fixed in 2019.4.X, 2020.3.X, 2021.1.X, 2021.2.X

Votes

0

Found in

2019.4

2020.3

2021.1

2021.2

2021.2.0b2

2022.1

Issue ID

1349093

Regression

No

Building time increases when Optimize Mesh Data is enabled

Shader System

-

How to reproduce:
1. Open the attached project "1349093-repro.zip" with Windows set as Target Platform
2. In File > Build Settings, make sure that Scenes/SampleScene is added to Scenes In Build
3. Build and observe how long it took for the build to complete in the Console tab
4. Go to Edit > Project Settings > Player > Other Settings > Optimization
5. Enable "Optimize Mesh Data"
6. Build the project again

Expected results: the second build completes in the same time or faster as was observed in step 3 (~30s)
Actual results: the second build takes much longer to complete (~400s)

Reproducible with: 2019.4.29f1, 2020.3.16f1, 2021.1.17f1, 2021.2.0b7, 2022.1.0a5

Notes:
- Increased build times were also observed when building for Nintendo Switch
- The very first build might take longer despite "Optimize Mesh Data" being disabled due to shader compilation

  1. Resolution Note (fix version 2022.1):

    Fixed in 2022.1.0a7

  2. Resolution Note (fix version 2021.2):

    Fixed in 2021.2.0b13

  3. Resolution Note (fix version 2021.1):

    Fixed in 2021.1.22f1

  4. Resolution Note (fix version 2020.3):

    Fixed in 2020.3.19f1

  5. Resolution Note (fix version 2019.4):

    Fixed in 2019.4.31f1

Comments (1)

  1. laurentlavigne

    Aug 07, 2021 03:22

    This doesn't happen in 2020.1.17 so whatever you added in the LTS regressed optimize mesh in a huge way

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.