cancel
Showing results for 
Search instead for 
Did you mean: 

Fps / draw calls / tris counter UI on Gear VR ?

motorsep
Rising Star
Is there a built-in functionality to display fps / draw calls / tris counters for Unity+Utils apps/games?

If not, has anyone implemented such UI and if so, can you please share your code ? Thanks.

Ideally it would be better just having this panel:

http://docs.unity3d.com/Manual/RenderingStatistics.html

to be displayed in Gear VR (in VR friendly manner)
5 REPLIES 5

vrdaveb
Oculus Staff
The closest things we have today are the perf HUD with render and latency timings (accessible via OculusConfigUtil) and OVRDebugInfo.cs (for frame rate, latency, resolution). You could extend OVRDebugInfo with data from the (unsupported) UnityEditorInternal namespace.

motorsep
Rising Star
"vrdaveb" wrote:
The closest things we have today are the perf HUD with render and latency timings (accessible via OculusConfigUtil) and OVRDebugInfo.cs (for frame rate, latency, resolution). You could extend OVRDebugInfo with data from the (unsupported) UnityEditorInternal namespace.


Does all that come with Oculus Utils?

If so, how can I enable that in my build ?

vrdaveb
Oculus Staff
Yes, it all comes with Utilities 0.1.2, available here: https://developer.oculus.com/downloads/game-engines/0.1.2.0-beta/Oculus_Utilities_for_Unity_5/. OVRDebugInfo is a script you add to your scene. For an example, see OVR/Scenes/Room.unity. The perf hud (https://developer.oculus.com/documentation/pcsdk/latest/concepts/dg-hud/) will appear if you open OculusConfigUtil and click Tools > Advanced > Show Performance HUD.

motorsep
Rising Star
"vrdaveb" wrote:
OVRDebugInfo is a script you add to your scene. For an example, see OVR/Scenes/Room.unity.


I actually already had that (green) http://i.imgur.com/FQX0Hzm.png but didn't see anything on screen when testing.

Should I add DebugGraph (orange) to actually toggle performance HUD ?

"vrdaveb" wrote:
The perf hud (https://developer.oculus.com/documentation/pcsdk/latest/concepts/dg-hud/) will appear if you open OculusConfigUtil and click Tools > Advanced > Show Performance HUD.


I take it as it's for the Rift only, not for Gear VR ? (I could find anything like that in Unity, using Utils)

vrdaveb
Oculus Staff