Skip to main content
Inspiring
October 28, 2015

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

    Inspiring
    October 28, 2015
    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?
    Up and Coming
    October 28, 2015
    It is actually quite simple:

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

    with mode being, ovrPerfHud_Off, ovrPerfHud_LatencyTiming or ovrPerfHud_RenderTiming
    Inspiring
    October 28, 2015
    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?
    Inspiring
    October 28, 2015
    Ah, and me now knowing the Enums, people should also take care of this:

    viewtopic.php?t=24619
    Up and Coming
    October 30, 2015
    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.
    Inspiring
    October 31, 2015
    "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 :)