Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
thewhiteambit's avatar
thewhiteambit
Adventurer
10 years ago

Performance HUB in own Application

The Documentation says very little about how the Performance HUD can be viewed in you own Application, were it might make more sense to developers than in OculusWorldDemo. Do you have to collect and render these metrics by yourself? Then why is the compositor mentioned at all? Or can the compositor show these metrics by itself - then again, why is there no mention of any functions to show them?

"The Performance HUD screens are rendered by the compositor, which enables them to be displayed with a single SDK call. In OculusWorldDemo, you can toggle through the Performance HUD screens by pressing F11."
https://developer.oculus.com/documentat ... ts/dg-hud/

6 Replies

  • Ok, I see one can enable it in the Oculus Configuration Utility and it is rendered by the compositior. Bow how can you switch this programmatically from within your application?
  • It is actually quite simple:

    ovr_SetInt( session, "PerfHudMode", (int)mode);

    with mode being, ovrPerfHud_Off, ovrPerfHud_LatencyTiming or ovrPerfHud_RenderTiming
  • Great, thank you Michael! First real answer and no guesswork I got in this forum so far :) Maybe someone over at Oculus VR could complete the Documentation or have I just been blind?
  • owenwp's avatar
    owenwp
    Expert Protege
    There is also a separate debug tool provided with the SDK that can turn the HUD on and off while your (or any) app is running.
  • "owenwp" wrote:
    There is also a separate debug tool provided with the SDK that can turn the HUD on and off while your (or any) app is running.


    Can be enabled with the Oculus Configuration Utility also :)