Search Issue Tracker
Fixed
Fixed in 2022.3.0f1, 2023.2.9f1, 2023.3.0b5
Votes
0
Found in
2022.3.7f1
2023.1.8f1
2023.2.0b4
2023.3.0a1
Issue ID
UUM-45320
Regression
No
A lot of "TMP.GenerateText" calls when enabling and disabling "Canvas" Component
Reproduction steps:
1. Open the attached “repro_IN-49860.zip“ project
2. Open the Profiler (Window > Analysis > Profiler)
3. Press the “Record profiling information (F9)“ button
4. Enter the Play Mode
5. While in Play Mode, disable and enable the “Canvas“ Component in the “Canvas“ GameObject
6. Observe the Profiler
Expected result: No spikes in performance
Actual result: There's a big spike in performance under “CanvasUpdate.PreRender” due to a great amount of “TMP.GenerateText” calls
Reproduced with: 3.2.0-pre.1, 3.2.0-pre.5 (2021.3.29f1), 4.0.0-pre.2 (2022.3.7f1, 2023.1.8f1, 2023.2.0b4)
Reproduced on: Windows 10
Comments (1)
-
Jar_Coding
Aug 15, 2024 08:08
This happens again in Unity 2022.3.39f1
CanvasUpdate.PreRender
TMP.GenerateText is called for multiple Text Mesh Textes when disabling the canvas / when setting a canvas group alpha to 0 and interactable to false.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
Resolution Note (fix version 2023.3.0b5):
Ensuring Text is not regenerated when enabling and disabling canvas
Resolution Note (fix version 2023.2.9f1):
Ensured enabling and disabling Canvases does not cause a regeneration of the text.
Resolution Note (fix version 2022.3.0f1):
Ensuring Text is not regenerated when enabling and disabling canvas.