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
- [macOS] Editor crashes after entering Play mode with overlapping GameObjects with Cloth Component and Cloth Inter-Collision enabled
- Look Dev constantly regenerates the default Volume Profile when set to "None" instead of using the default one
- Look Dev errors are spammed when opening a new HDRP project when Look Dev was added to the layout in the previous project
- URP Scene Templates are not editable when first opened from the New Scene dialog
- Look Dev window flickers when resizing the window after docking it
Add comment