Forum Discussion

Pacificeve's avatar
Pacificeve
Honored Guest
4 years ago

Unity Development Refresh Rate

I'm struggling to find something that is a full guide of how to set and/or see what the refresh is in the game you are developing.. Everything says either use the tools that come with Oculus (Support). Which yes install and host a service but it does nothing for me, not sure if its because I'm not using my GPU and just using the headset. But I would like the ability to edit a Unity file and statically set the refresh rate (which file) and/or in the game I'm developing just be able to see in it what the refresh rate and such is. Everything I see and search for ASSUMES way too much..

Keep finding stuff like below but where do you put it.. I just dont create a new file and drop that in there and whala

 

OVRPlugin.systemDisplayFrequency = 90.0f;
OVRManager.DisplayRefreshRateChanged += DisplayRefreshRateChanged

private void DisplayRefreshRateChanged (float fromRefreshRate, float ToRefreshRate)
{
// Handle display refresh rate changes
Debug.Log(string.Format("Refresh rate changed from {0} to {1}", fromRefreshRate, ToRefreshRate));
}

1 Reply

  • The Profiler is where to go for frame rates.  It can be confusing at first.

     

    Here's a tutorial that starts with an non-performant initial setup, then using Profiler to see what's happening:

    https://www.youtube.com/watch?v=fROTtgZK-Zs

     

    Protip:  The PlayerLoop in the area at the bottom is the go to... (for insight and some additional confusion)  Just dig into things, specifically around the MonoBrehaviors.

     

    I wouldn't mess around with the frame rates manually.  As well, I haven't messed with RenderDoc yet, haven't needed to dig that deep yet.