Neos-Metaverse / NeosPublic

A public issue/wiki only repository for the NeosVR project
197 stars 9 forks source link

Switching to desktop mode when using VirtualDesktop will significantly reduce CPU usage and frame rate. #2242

Open rabbuttz opened 3 years ago

rabbuttz commented 3 years ago

Describe the bug

Switching to desktop mode when using virtual desktop will significantly reduce CPU usage and frame rate.

Relevant issues

To Reproduce

  1. Start NeosVR on VirtualDesktop with SteamVR
  2. Take off your headset
  3. SteamVR will lose tracking of your headset
  4. Then the CPU usage drops significantly

Expected behavior

Frame rate does not drop in desktop mode.

Screenshots / Video

https://youtu.be/EoiITvGltOc

Bug information (please complete the following information):

Additional context

This problem seems to be occurring for all users of VirtualDesktop.

Reporters:

Rabbuttz(あむ)#9966

shiftyscales commented 3 years ago

I've encountered this before as well.

I believe this is a throttling mechanism present in SteamVR for the Oculus Quest headsets. If I recall, you can observe the same behavior while using the headset through Oculus Link as well. If the headset is idle (e.g. asleep) SteamVR will heavily throttle its rendering (and by extension, Neos via Unity's renderer).

I don't believe this is something that we can address on our end/I believe this is an intended/hardcoded part of the Oculus/SteamVR runtime.

shiftyscales commented 3 years ago

Frooxius has noted before that he intends to disable VR rendering altogether in a future update while the desktop mode is active which should uncap the framerate/allow it to reach full desktop speeds (currently it's stuck at the refresh rate of VR, which in this case gets throttled because the headset is inactive.)