Search Issue Tracker
Won't Fix
Votes
0
Found in
2022.3.64f1
6000.0.52f1
6000.1.10f1
6000.2.0b8
6000.3.0a1
Issue ID
UUM-110992
Regression
Yes
Code runs slower when using a cached exception instance compared to creating a new one
How to reproduce:
1. Open the “IN-102980“ project
2. Open Window > General > Test Runner
3. In Test Runner select “Player” and click “Run All”
4. Observe the time it took for the tests to finish
5. Open Project Settings > Player > Other Settings
6. In “Scripting define Symbols” change “PROTO_PROMISE_DEBUG_DISABLE” to “PROTO_PROMISE_DEBUG_ENABLE”
7. In Test Runner select “Player” and click “Run All”
8. Observe the time it took for the tests to finish
Expected result: Tests with “PROTO_PROMISE_DEBUG_DISABLE” run faster (or at least equal) compared to tests with “PROTO_PROMISE_DEBUG_ENABLE”
Actual result: Tests with “PROTO_PROMISE_DEBUG_DISABLE” run slower compared to tests with “PROTO_PROMISE_DEBUG_ENABLE”
Reproducible with: 2021.2.0b6, 2022.3.64f1, 6000.0.52f1, 6000.1.10f1, 6000.2.0b8, 6000.3.0a1
Not reproducible with: 2021.1.0a9
Could not test with: 2021.1.a10, 2021.2.0b5 (Compilation errors: “Feature 'target-typed object creation' is not available in C# 8.0. Please use language version 9.0 or greater.”)
Reproducible on: macOS 15.5 (M1 Max), Windows 10 (by user)
Not reproducible on: no other environments tested
Note: This issue reproduces in IL2CPP, Mono builds and Play Mode
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
- Usymtool tries to upload GameAssembly.pdb when it doesn't exist after building with Mono backend
- “NullReferenceException” error thrown in the Console when running HDRP Wizard “Fix All” in URP project after installing HDRP Package
- "Debug Draw Mode" unchecked checkboxes are not visible
- [Android] App crashes when Volume Depth of Field is set to "Bokeh" while using Vulkan Graphics API
- Baked Off Mesh Links outside the modified area are deleted when using NavMeshSurface.UpdateNavMesh
Resolution Note:
Using Exceptions in this fashion is not recommended, and we advise to use a new Exception.
Since a workaround exists, and the issue is very niche and related to Mono, we will not be fixing this issue at this time.