File tree Expand file tree Collapse file tree
OSVR-Unity/Assets/OSVRUnity/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ public class DisplayController : MonoBehaviour
3737 {
3838
3939 public const uint NUM_VIEWERS = 1 ;
40+ private const int TARGET_FRAME_RATE = 60 ; //@todo get from OSVR
4041
4142 private ClientKit _clientKit ;
4243 private OSVR . ClientKit . DisplayConfig _displayConfig ;
@@ -97,8 +98,10 @@ void SetupApplicationSettings()
9798 //VR should never timeout the screen:
9899 Screen . sleepTimeout = SleepTimeout . NeverSleep ;
99100
100- //60 FPS whenever possible:
101- Application . targetFrameRate = 60 ;
101+ //Set the framerate
102+ //@todo get this value from OSVR, not a const value
103+ //Performance note: Developers should try setting Time.fixedTimestep to 1/Application.targetFrameRate
104+ Application . targetFrameRate = TARGET_FRAME_RATE ;
102105 }
103106
104107 void SetupDisplay ( )
You can’t perform that action at this time.
0 commit comments