Unity Issue Tracker - Font Texture uses more memory when used in WebGL Build
Fixed
UUM-59366
Font Texture uses more memory when used in WebGL Build
Unity: WebGL
Fixed
2023.3.X
2023.2.X
2022.3.X
2021.3.X
Alpha8 texture format has been enabled for WebGL, reducing the memory required for TMP font textures by not having to convert them to RGBA8.
Alpha8 texture format has been enabled for WebGL, reducing the memory required for TMP font textures by not having to convert them to RGBA8.
Alpha8 texture format has been enabled for WebGL, reducing the memory required for TMP font textures by not having to convert them to RGBA8.
Alpha8 texture format has been enabled for WebGL, reducing the memory required for TMP font textures by not having to convert them to RGBA8.
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