Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by eyals · Mar 22, 2019 at 11:29 PM · vroculusoculus rift

Oculus: How to pass the TestSubmitFramesWhenNotVisible validation?

I am writing an oculus app and running the oculus validator. It is my understanding that the app needs to stop outputting frames when it looses vr focus: https://developer.oculus.com/documentation/unity/latest/concepts/unity-lifecycle/

However, I am not clear if I am supposed to be doing this manually. From what I can tell on old forum posts, unity is supposed to handle this automatically for me. From what I see, when the the app loses focus, it's mirror window on the computer screen goes black, but the TestSubmitFramesWhenNotVisible fails anyway with 2 frames submitted. Is there some code that I should be calling in my unity scripts in response to OVRManager.hasVrFocus?

I find it interesting though, that the number of ovr_CommitTextureSwapChain goes down from 36 to 2.

 "c:\Program Files\Oculus\Support\oculus-diagnostics\OculusVRCValidator" --path build/game/game.exe --test TestSubmitFramesWhenNotVisible
 
 22/03 23:46:57.299 {INFO}    [Kernel:Default] [CAPI] LibOVR module is located at C:\Program Files\Oculus\Support\oculus-runtime\LibOVRRT64_1.dllStarting TestSubmitFramesWhenNotVisible
 
 22/03 23:46:57.306 {INFO}    [Client] Connected to the server running version (prod = 1).1.36.0(build = 215623) feature version = 0. Client runs version (prod = 1).1.36.0(build = 0) feature version = 0
 Waiting for the application to run for 5 seconds before testing begins...
 Starting test...
 Requesting the void...
 Number of texture swap chains committed when visible 36
 Number of texture swap chains committed when not visible 2
 ERROR: Committed a texture swap chain (called ovr_CommitTextureSwapChain) when application not visible
 Please refer to VRC Guidelines: https://developer.oculus.com/distribute/latest/concepts/vrc-pc-input-1/
 Cleaning up...
 Test FAILED

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image rh_galaxy · Jun 03, 2019 at 10:41 AM 0
Share

Same here, I also think it's supposed to work by itself but have tested 2019.1.4f1, 2019.2.0b4 and 2019.3.0a4 versions and all the way back to 2017.2.5f1. With no luck... the last tested versions I didn't even install Oculus Integration package, just created an project and set XR enabled.

'Run in background' or 'Visible in background', setting 'Dash' on/off doesn't help. Disable camera in response to !(OVR$$anonymous$$anager.hasInputFocus && OVR$$anonymous$$anager.hasVrFocus) doesn't help.

Did you find any solution?

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by DanTaylor · May 20, 2019 at 04:45 PM

I am guessing that unchecking "Run in background" on the player settings should fix this.

I'll let you know if it doesn't once I've submitted my app!

More info here.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by rh_galaxy · Jun 03, 2019 at 01:46 PM

Ok, now I think I figured something out about this... After testing nearly all available versions of unity it may be the logo/splashscreen so I guess that has to go.

Managed to get it from "texture swap chains committed when not visible" 4 to 2 and sometimes 0 (one time), by having the bare minimum setting of Animation "static", and Draw Mode "Unity Logo Below".

Edit: no it wasn't that Unity Plus didn't help.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by hgulgen · Aug 06, 2019 at 01:34 PM

Hi Did you find any solution for this ? @rh_galaxy @eyals

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image rh_galaxy · Aug 06, 2019 at 01:42 PM 0
Share

Yes, the app still shows this issue in the automated test, but there was no issue when the app was submitted for review...

avatar image hgulgen rh_galaxy · Aug 06, 2019 at 01:52 PM 0
Share

Thanks for your answer. I tried to figure out how can I solve this problem for last 4 days. I never could not pass automated test. $$anonymous$$anuel test is ok. $$anonymous$$aybe something wrong in Oculus VRC validator. I could not understand. @rh_galaxy

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

139 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity Build not running on Oculus DK2 3 Answers

Is it possible to override the "Cannot set field of view on camera with name 'screenCamera' while VR is enabled." limitation? 1 Answer

Restrict GameObject to another GameObject? 0 Answers

Is it possible to use mouse to click things on the computer screen while on VR? 1 Answer

Unable to detect rift,XR.XRSettings.enabled is returning false 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges