Forum Discussion
sapanda
10 years agoExplorer
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
Thanks,
Saswat
2 Replies
Replies have been turned off for this discussion
- drashHeroic ExplorerI 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. - sapandaExplorerThanks a ton, that does the job perfectly! I just ended up using the script from the reference doc:
http://docs.unity3d.com/ScriptReference ... artup.html
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago
- 1 year agoAnonymous