Search Feedback

118
votes

Provide API to access Render Statistics outside the editor

Profiling & Optimization

-

-

The Game View features the "Statistics" Overlay, which displays batches, triangle count, Shadow Casters, SetPass Calls and so on.

Having access to this information in a build (outside editor) would be extremely useful.

I need this in a build, because we run automated performance tests, where the game is started in a special mode that loads every level, places the camera at specific positions, measures the performance and submits the result to Splunk.

It would be very useful to be able to include the "Render Statistics" in this report as well, because this would allow us to automatically detect whether a specific part in the game issues too many SetPass Calls for example.

I believe the game (in development mode) does track these statistics, since if I attach a Profiler, I can see the Render Statistics.

Please expose the Render Statistics, basically everything that is displayed in the Scene View Overlay to the Profiler API for example, which already contains various "GetMemory" API's.

Comments (2)

  1. 5943c607d7f7de4d574457569ce8d87a?d=mm

    willbg-sfg

    Jan 17, 2019 09:30

    This feature would be very handy for us, please implement it.

  2. 495e55a1ab7af58b9c2dbec7b81135f1?d=mm

    Peter77

    Sep 26, 2017 16:54

    Shamelessly posted this in the 2017.3 beta forum as well:
    https://forum.unity.com/threads/profiler-add-functionality-to-get-more-statistics.497602/

Your opinion counts

Help us make things better. Share your great idea for improving Unity or vote for other people’s.

Log in to post a new idea

Categories

All

(11030)

2D

(290)

Ads

(63)

AI & Navigation

(83)

Analytics

(130)

Animation

(413)

Asset Store

(370)

Asset Store Publisher

(21)

Assets

(557)

Audio

(185)

Cloud Build

(154)

Collaborate

(70)

Docs & Tutorials

(251)

Editor

(2579)

Everyplay

(17)

Game Performance Reporting

(22)

General

(1003)

Graphics

(903)

GUI

(447)

Input

(173)

Licensing

(93)

Networking

(192)

Physics

(392)

Platforms

(448)

Profiling & Optimization

(84)

Runtime

(188)

Scripting

(1154)

Terrain

(177)

WebGL

(145)