Search Issue Tracker
Fixed in 6000.0.65f1
Fixed in 6000.0.X, 6000.3.X, 6000.4.X, 6000.5.0a4
Votes
0
Found in
6000.0.62f1
6000.2.13f1
6000.3.0f1
6000.4.0a5
6000.5.0a2
Issue ID
UUM-127894
Regression
No
ProfilerRecorder does not record any ProfilerCategory.Render data when Application.targetFramerate is set
Reproduction steps:
1. Open the attached “IN-125177.zip” project
2. Open the Test Runner window (Window > General > Test Runner)
3. Select the PlayMode tab
4. Click “Run All” and wait for the tests to finish
5. Fully expand the “ProfileTest (2 tests)” tests dropdown
6. Click on and observe values under “TargetFramerateSetTest” and “TargetFramerateUnsetTest”
Expected result: Both tests record non-zero values for draw calls and vertex count
Actual result: Only the second test (“TargetFramerateUnsetTest”), where the target framerate property is unset, records any values
Reproducible with: 2023.1.0b1, 6000.0.62f1, 6000.2.13f1, 6000.3.0f1, 6000.4.0a5, 6000.5.0a2
Reproducible on: Windows 11
Not reproducible on: no other environments tested
Workarounds:
- Add the following ProfilerRecorder option: ProfilerRecorderOptions.StartImmediately
- Force ProfilerDriver.enabled to True; however, this causes the editor to crash when trying to close it
Notes:
- This issue appears to specifically affect the ProfilerCategory.Render category. Running the same tests with Memory and Internal recorders works as expected
- The Test Runner script contains two tests, both of which start a ProfilerRecorder in the Render category. One test sets Application.tagetFramerate to 60 before running the recorder. The other test unsets it back to -1 (the default value) before running the recorder
- The issue also happens when profiling Play mode in the Editor via, for example, an in-scene script that starts a ProfilerRecorder
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- UI Toolkit World UI Text Field unfocuses immediately when clicking on it using XR Controller
- Crash on CallWindowProcW when entering Play mode for the second time and running the Editor in the background while using System.Windows.Forms functions
- 2D Freeform Light shadows disappear when light center is offset from shape bounds
- Crash on MarkAllDependencies when opening scenes with Assets from the YarnSpinner package
- Crash on CollectAllSceneManagerAndObjectIDs when opening a specific Scene
Add comment