Skip to main content
Up and Coming
January 11, 2015

Unreal Engine 4.7 Preview 2 - VR Preview Framerate

Hi Guys,

I am really loving the "Play > VR Preview" button. Amazing how fast you can pop into your level and back into your editor!

That said, I cannot figure out why this mode is locked at 60 frames per second. When I "Play > Standalone Game" and press alt+enter to get into the DK2, I get a solid 75 frames per second. But, with "Play > VR Preview", it is always 60.

Is there a setting I can toggle somewhere to bump this up?

Thanks!

EDIT: The cause of this problem was related to the editing viewport's default maximum framerate of 60FPS. To fix, you need to open a console by typing "~" (tilda) from within your editing viewport. Then, type this: "t.MaxFPS 200'" and hit <enter>. This will allow all of your viewports to run at a framerate higher than the default 60; including the VR Preview.
    This topic has been closed for replies.

    25 replies

    Up and Coming
    January 12, 2015
    Found a way to fix the fps in VR Preview when t.MaxFPS is set, but it requires source code change. I'll put the change in Oculus-VR github branch (4.6 and 4.7-np) and will send it to Epic guys to integrate into main 4.7 branch.
    andrewtekAuthor
    Up and Coming
    January 13, 2015
    Hi Artyom17. I am curious if it would be possible to remove the health and safety warning when in "VR Preview" mode. Or, only show it the first time you go into that mode during an Unreal Engine session.
    Up and Coming
    January 13, 2015
    You can disable H&S Warning all together for development. It is described in the "Oculus Developer Guide" (https://developer.oculus.com/documentation/), section "Health and Safety Warning". Here is the excerpt from there:
    With the release of 0.4.3, the Health and Safety Warning can now be disabled via the Oculus Configuration Utility. Before suppressing the Health and Safety Warning, please note that by disabling the Health and Safety warning screen, you agree that you have read the warning, and that no other person will use the headset without reading this warning screen. To use the Oculus Configuration Utility to suppress the Health and Safety Warning, a registry key setting must be added for Windows builds, while an environment variable must be added for non-Windows builds. For Windows, the following key must be added if the Windows OS is 32-bit: HKEY LOCAL MACHINE\Software\Oculus LLC\LibOVR\HSWToggleEnabled

    If the Windows OS is 64-bit, then the path will be slightly different: HKEY LOCAL MACHINE\Software\Wow6432Node\Oculus LLC\LibOVR\HSWToggleEnabled Setting the value of ”HSWToggleEnabled” to 1 will enable the ”Disable Health and Safety Warning” check- box in the Advanced Configuration panel of the Oculus Configuration Utility. For non-Windows builds, setting an environment variable named ”Oculus LibOVR HSWToggleEnabled” must be created with the value of ”1”.
    andrewtekAuthor
    Up and Coming
    January 13, 2015
    Thanks! This is truly the coolest thing. Being able to iterate this quickly is awesome.

    Out of curiosity, what other changes are you making (or have you made) to the Unreal Engine... I would love to check them out!

    NOTE: if you are using 0.4.4 on 64-bit windows, you will want your Registry path to look like this:
    If the Windows OS is 64-bit, then the path will be slightly different:
    HKEY LOCAL MACHINE\Software\Wow6432Node\Oculus VR, LLC\LibOVR\HSWToggleEnabled

    Excerpt from page 24 of http://static.oculus.com/sdk-downloads/documents/Oculus_Developer_Guide_0.4.4.pdf
    Up and Coming
    January 13, 2015
    All my changes eventually appear on github, so you can track them there: https://github.com/Oculus-VR/UnrealEngine
    To check out work in progress go to this topic: viewtopic.php?f=60&t=19145
    Next step is to add functionality to access raw data (acceleration, velocity) and user profile data (gender, height, ipd, etc).