How to reproduce:
1. Open attached “IN-98044” project
2. Open the “SampleScene”, in the Scenes folder
3. Select the “Terrain” GameObject in the Hierarchy
4. Find the “Func Pointer Perf Regression” script component in the Inspector
5. In the component use the context menu and click the “Generate” option
6. Observe the Console
Expected result: Logged message reads “Generation time: 7sec”
Actual result: Logged message reads “Generation time: 24sec”
Reproducible with: 1.8.12 (2022.3.11f1, 2023.3.0a18), 1.8.21 (2021.3.51f1, 2022.3.61f1, 6000.0.47f1, 6000.1.0b15, 6000.2.0a9)
Not reproducible with: 1.8.11 (2022.3.11f1, 2023.3.0a18)
Reproducible on: Windows 11
Not reproducible on: No other environments tested