Search Issue Tracker
By Design
Votes
1
Found in
2017.1.0f3
Issue ID
961520
Regression
No
Recorder.elapsedNanoseconds values do not match with Profiler time values for Render samples
Reproduction steps:
1. Open the attached project "Profiler Bug.zip";
2. Open the Test scene;
3. Enable the Profiler by clicking "Record";
4. Enter a Play mode;
5. Compare the values in the Console (from TestScript) to the Profiler values.
Expected results: Values shown in the Console, which are results of Recorder.elapsedNanoseconds method, should match with values given in the Profiler for all samples.
Actual results: Values do not match for render samples (such like Camera.Render).
Reproduced on: 5.6.3p4, 2017.1.2p2, 2017.2.0f3, 2017.3.0b6, 2018.1.0a1.
Profiling.Recorder API captures all events whenever they come from editor or playmode.
To capture something which is limited to a playmode Recorder must be enabled only for the game logic duration in the editor.
Also in 2018.2 Profiler Native Plugin API allows to make Recorder-like class with advanced custom functionality (e.g. per thread capture)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "SupportsRandomWriteOnRenderTextureFormat()" shows "False" when executed on 2023.2 and 6000.0 streams
- Size of ShadowCaster2D with Casting Source set to a Collider increases when RigidBody2D is attached to the GameObject
- GameObjects with a material derived from a Custom Lighting Surface Shader are displayed as skewed on quads when the Camera's Width and Height properties of the Viewport Rect are lower than 1
- Warning 'Unable to find player assmebly' is thrown when building some Project Templates
- ArgumentOutOfRangeException when manipulating the Project Settings search bar
Add comment