Forum Discussion

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

Detecting GearVR render framerates

Using Time.deltaTime gives me the game framerate. But with Async Timewarps, its always fixed to 60 fps. Anyone know how to obtain the render framerate? I've also tried disabling the "Time Warp" flag on the OVRCameraController, but that doesn't seem to actually disable the Timewarps.

Thanks,
Saswat

2 Replies

Replies have been turned off for this discussion
  • drash's avatar
    drash
    Heroic Explorer
    I know what you mean. The "Maximum Allowed Timestep" in Edit -> Project Settings -> Time is set quite low in support of async timewarp (and probably shouldn't touch it), so the workaround I suggest is to compute your own "delta time" for FPS calculations using the Time.realtimeSinceStartup value. You'll need to watch out for cases when the app is paused doing it this way though, since Time.realtimeSinceStartup will just keep accumulating whether the app is paused or not.

    Hope that helps.