• 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
0
Question by thebko · Oct 13, 2014 at 02:37 PM · oculusframerate

Simple 3D demo but performance problem

Hi,

i making a 3D demo for oculus Rift Dk2.

The demo is simple and contain :

1 Terrain with some relief. 1 plane 1 Prefab OVR player controller (prefab control for oculus rift). 20 Cubes (they are trampolines and we can jump from one to another). There are 2 javascript script : - one for jump and test collision with cube - one that move randomly some cubes

Sometimes, when i launch the demo, the framerate is OK at constant 60 FPS Sometimes, the framerate is 30 FPS with lag with no explanation. (no programs are running behind)

I try the target.framerate at 75 (best settings for oculus) but the demo stay a 60 Fps in the best case.

The 3D is absolutely not complex and my script don't do a lot of things...

My PC specs are good : i7 4770 16 Go Ram GTX 780

Have you an idea ?

thanks !

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Flassari · Oct 13, 2014 at 03:52 PM

Try setting the target framerate to -1.

 Application.targetFrameRate = -1;

It will try to render the application as fast as possible. If that doesn't work then make sure that vSync is off: Project Settings -> Quality -> VSync Count : Don't sync. You can try that with targetFrameRate at either -1 or 60, whichever looks better.

Comment
Add comment · Show 1 · 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 thebko · Oct 13, 2014 at 11:54 PM 0
Share

Thank you.

O$$anonymous$$ i try everthing :Targetframerate = -1 or 60, but it change anything with or whithout Vsync. (i try targetframerate = 10 and the demo was at 10 fps, so the function is ok).

The demo run sometimes at 60 FPS, sometimes at 30 FPS. Sometimes, the demo start at 60 FPS, down to 30 fps while 10 or 20 seconds and up again to 60 fps.

I try to disable all my script, but it change anything.

I do not know what to do :(

avatar image
0

Answer by thebko · Oct 16, 2014 at 12:00 AM

Find it !

I build my 3D VR Demo with Unity 4.5.3 and 4.5.4 after an update.

It seems there's a problem with these versions. I try with Unity 4.5.2, and the framerate is perfect !

Comment
Add comment · Show 1 · 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 KpjComp · Oct 16, 2014 at 12:30 AM 0
Share

Looking at what's changed in 4.5.3, there was some DX11 stuff. So I wonder if disabling DX11 in player settings might help.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Andriod (Oculus Quest 2 app) locked at 30 fps 1 Answer

Update() faster than 90 FPS when using VR 1 Answer

Physics behaviour changing with framerate - Is FixedUpdate() actually working properly? 3 Answers

iOS Keyboard makes performance suffer 3 Answers

How can I calculate the frame rate? I have some misunderstandings with deltaTime. 1 Answer


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