Search Issue Tracker
Fixed in 2022.3.21f1
Fixed in 2022.3.X, 2023.2.X, 2023.3.X, 2023.3.0b8
Votes
1
Found in
2022.2.20f1
2023.1.0b17
2023.2.0a16
2023.3.0a3
Issue ID
UUM-35989
Regression
No
LoadRawTextureData takes more time than expected when using TextureCreationFlags.DontUploadUponCreate
Reproduction steps:
1. Open the Superluminal profiler
2. Open the attached "repro_IN-40868.zip" project
3. Start profiling the "Unity.exe" process in the Superluminal profiler
4. Enter the Play Mode in the Unity Editor
5. After a few seconds, stop the Play Mode
6. Stop the profiling in the Superluminal profiler
7. Observe the profiling data
Expected result: no time is spent on Texture2D::UnshareTextureData during LoadRawTextureData, because TextureCreationFlags.DontUploadUponCreate is in use so the TextureData should not be referenced by the upload.
Actual result: the data upload is skipped, but Texture2D::UnshareTextureData still takes longer than expected (RefCount is not 1).
Reproduced with: 2022.2.20f1, 2023.1.0b17, 2023.2.0a16
Could not test with: 2020.3.48f1, 2021.3.25f1 (does not have TextureCreationFlags.DontUploadUponCreate included in the code)
Reproducible on: Windows 10
Note: Reproducible in builds
Comments (1)
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
- [UWP] Mouse movement re-triggers stale <Mouse>/scroll value after the scroll wheel is used once
- "Shutdown worker was forced killed because it kept running. Worker ..." errors are thrown after building a blank HDRP project
- [UI Toolkit] USS materials in AssetBundles break due to InstanceID referencing a material that no longer exists when a Scene is loaded through Addressables for the second time
- Help button leads to a missing documentation page when clicked on a Font Import Settings in the Inspector
- TextMeshPro Text Component reads bottom-to-top instead of top-to-bottom when using RTL Editor
mgear
Nov 16, 2023 09:18
just a info snippet for unity QA discord:
"Karl Jones: They expect to start work on this bug in December and expect a fix will be available early next year."