- Home /
Is anyone able to query vertex counts from ProfilerDriver.GetFormattedStatisticsValue ?
We're using this command in batch mode:
ProfilerDriver.GetFormattedStatisticsValue(frameIndex, i);
and it returns results for some profiler buckets but not others. I know that it's failing because I can load the same capture into the GUI editor and manually scroll through the frames to see vertex counts for example, but running in batch mode those stats always return back as 0.
Buckets seem to always return 0:
Batches
SetPass calls counts
Triangles counts
Vertices counts
Buckets that do return accurate results are:
Dynamic Bodies
Kinematic Bodies
Sleeping Bodies
Static Bodies
I've verified we aren't just trying the wrong index by running this loops, that prints everything from a frame, and I don't see any standout items like what should be around 90k vertices in the resulting stats.
for( var i = 0; i < 137; i++) {
var temp = ProfilerDriver.GetFormattedStatisticsValue(frameIndex, i);
Debug.Log($"{frameIndex}, {i} = {temp}");
}
Your answer
Follow this Question
Related Questions
Unity 2018.3 on Mac OS using > 100% CPU while idle in editor mode 3 Answers
Different render stats in profiler between Unity Editor and distant Android device 0 Answers
Easy way to convert a bunch of vertices to triangles or uv's? 1 Answer
City model for iOS game. 1 Answer
Blender Rigging Problem 1 Answer