Search Issue Tracker
Fixed in 2021.3.35f1
Fixed in 2021.3.X, 2022.3.X, 2023.2.X, 2023.3.X, 2023.3.0b2
Votes
3
Found in
2021.3.33f1
2022.3.16f1
2023.2.4f1
2023.3.0b1
Issue ID
UUM-59366
Regression
No
Font Texture uses more memory when used in WebGL Build
How to reproduce:
1. Open the attached project "project-font-memory.zip"
2. Open File>Build Settings...
3. Switch Platform to "WebGL"
4. Enable "Development Build" and "Autoconnect Profiler"
5. Build And Run the project
6. Open the Memory Profiler (Window>Analysis>Memory Profiler)
7. Capture a New Snapshot with the Memory Profiler
8. Select the captured snapshot
9. Select the "Unity Objects" tab in the Memory Profiler
10. Expand the "Texture2D" dropdown
Expected results: The "Font Texture" has 4MB Allocated Size
Actual results: The "Font Texture" has 16MB Allocated Size
Reproducible with: 2021.3.33f1, 2022.3.16f1, 2023.2.4f1, 2023.3.0b1
Reproducible on: Windows 11 22H2
Not reproducible on: No other environment tested
Comments (2)
-
AndyKun
Dec 20, 2023 05:41
Webgl1.0 hasn't this problem.but webgl2.0 has,
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
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Group Selection title text size is smaller in renaming than the actual font size
- Rich Text is not correctly highlighted when searching through Debug Logs in the Console window
- Shader warning in 'Hidden/Core/DebugOccluder' thrown after building High Definition 3D Sample Template
Resolution Note (fix version 2023.3):
Alpha8 texture format has been enabled for WebGL, reducing the memory required for TMP font textures by not having to convert them to RGBA8.
Resolution Note (fix version 2023.2):
Alpha8 texture format has been enabled for WebGL, reducing the memory required for TMP font textures by not having to convert them to RGBA8.
Resolution Note (fix version 2022.3):
Alpha8 texture format has been enabled for WebGL, reducing the memory required for TMP font textures by not having to convert them to RGBA8.
Resolution Note (fix version 2021.3):
Alpha8 texture format has been enabled for WebGL, reducing the memory required for TMP font textures by not having to convert them to RGBA8.