Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug OpenXR framerate drops when headset is removed.

Discussion in 'Editor & General Support' started by bharaba, Jul 7, 2023.

  1. bharaba

    bharaba

    Joined:
    Dec 1, 2014
    Posts:
    2
    When trying to create a project with Unity 2022.3.4f1 with the default packages in the template, the demo scene works great.

    However, if I remove the headset, the CPU tanks. Putting the headset back on solves the problem for VR but at this point non-VR use of the application is impossible.

    Profiler culprit is FrameEvents.XRBeginFrame > Gfx.WaitForRenderThread 96+% @ 250ms

    This isn't ideal in general but it's specially bad if trying to create an application where VR/3D interaction is supported.

    Devices tested are Rift S and Touch and Quest 2 and Touch.

    OS Name Microsoft Windows 10 Enterprise
    Version 10.0.19045 Build 19045
    Other OS Description Not Available
    OS Manufacturer Microsoft Corporation
    System Name CFDEV004
    System Manufacturer ASUS
    System Model System Product Name
    System Type x64-based PC
    System SKU SKU
    Processor AMD Ryzen 5 5600X 6-Core Processor, 3701 Mhz, 6 Core(s), 12 Logical Processor(s)
    BIOS Version/Date American Megatrends Inc. 2403, 6/16/2021
    SMBIOS Version 3.3
    Embedded Controller Version 255.255
    BIOS Mode UEFI
    BaseBoard Manufacturer ASUSTeK COMPUTER INC.
    BaseBoard Product TUF GAMING B550-PLUS
    BaseBoard Version Rev X.0x
    Platform Role Desktop
    Secure Boot State Off
    PCR7 Configuration Binding Not Possible
    Windows Directory C:\WINDOWS
    System Directory C:\WINDOWS\system32
    Boot Device \Device\HarddiskVolume2
    Locale United States
    Hardware Abstraction Layer Version = "10.0.19041.2728"
    User Name SOHO\dkolev
    Time Zone Eastern Daylight Time
    Installed Physical Memory (RAM) 32.0 GB
    Total Physical Memory 31.9 GB
    Available Physical Memory 8.29 GB
    Total Virtual Memory 65.0 GB
    Available Virtual Memory 10.8 GB
    Page File Space 33.1 GB
    Page File C:\pagefile.sys
    Kernel DMA Protection Off
    Virtualization-based security Not enabled
    Device Encryption Support Reasons for failed automatic device encryption: TPM is not usable, PCR7 binding is not supported, Hardware Security Test Interface failed and device is not Modern Standby, Un-allowed DMA capable bus/device(s) detected, TPM is not usable
    Hyper-V - VM Monitor Mode Extensions Yes
    Hyper-V - Second Level Address Translation Extensions Yes
    Hyper-V - Virtualization Enabled in Firmware No
    Hyper-V - Data Execution Protection Yes

    Name AMD Radeon RX 6800
    PNP Device ID PCI\VEN_1002&DEV_73BF&SUBSYS_04F61043&REV_C3\6&13ACD3E9&0&00000019
    Adapter Type AMD Radeon Graphics Processor (0x73BF), Advanced Micro Devices, Inc. compatible
    Adapter Description AMD Radeon RX 6800
    Adapter RAM (1,048,576) bytes
    Installed Drivers C:\WINDOWS\System32\DriverStore\FileRepository\u0392410.inf_amd64_db8e7eec2f31b31d\B392251\aticfx64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\u0392410.inf_amd64_db8e7eec2f31b31d\B392251\aticfx64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\u0392410.inf_amd64_db8e7eec2f31b31d\B392251\aticfx64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\u0392410.inf_amd64_db8e7eec2f31b31d\B392251\amdxc64.dll
    Driver Version 31.0.14057.5006
    INF File oem27.inf (ati2mtag_Navi21 section)
    Color Planes Not Available
    Color Table Entries 4294967296
    Resolution 2560 x 1440 x 60 hertz
    Bits/Pixel 32
    Memory Address 0xC0000000-0xD01FFFFF
    Memory Address 0xD0000000-0xD01FFFFF
    I/O Port 0x0000FF00-0x0000FFFF
    Memory Address 0xFC800000-0xFC9FFFFF
    IRQ Channel IRQ 4294967270
    Driver C:\WINDOWS\SYSTEM32\DRIVERSTORE\FILEREPOSITORY\U0392410.INF_AMD64_DB8E7EEC2F31B31D\B392251\AMDKMDAG.SYS (31.0.14057.5006, 95.65 MB (100,296,080 bytes), 5/31/2023 3:33 PM)



    upload_2023-7-7_12-34-16.png

    upload_2023-7-7_12-36-21.png

    upload_2023-7-7_12-37-2.png

    upload_2023-7-7_12-32-34.png

    upload_2023-7-7_12-38-40.png
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,456
    Is the game view window still open?
    Does this also happen with Oculus XR Plugin? (Just to pinpoint if it's OpenXR specifically)
     
  3. bharaba

    bharaba

    Joined:
    Dec 1, 2014
    Posts:
    2
    Thanks for responding!

    Yes, the Game View window is open on a different screen (wasn't an issue with prior versions of Unity)

    Yes, I've tried with and without the Oculus XR plugin. Same result.
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,456
    If it wasn't an issue before make a bug report and mention that
     
  5. Harry_J_Unity

    Harry_J_Unity

    Unity Technologies

    Joined:
    Jan 31, 2020
    Posts:
    4
  6. FabioGavinelli

    FabioGavinelli

    Joined:
    Nov 24, 2018
    Posts:
    10
    Any news on this? the issue link doesn't work and I am experiencing the same problem