Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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
7
Question by xikky · Mar 02, 2013 at 06:40 PM · androidiosrenderingperformancevsync

Vsync on or off?

I have read and found out what vsync is about but I'm still in doubt if I should turn this of or on. I am building a game for Android and iOS. The game is heavy on physics, with profiler readings of over 70% on physics.simulate :( (due to use of cloth objects). So I'm trying to save every bit of performance possible.

Disabling vsync from quality settings boosts the game's FPS by 4 and even more, and the game runs smooth. With vsync enabled, only some minor jittering is experienced but FPS is ok - capped at 60 but most of the time being 30 - 50.

I'm using this script to compare fps.

I prefer when the game runs at 100 fps and over. But I don't know exactly what i'm losing when disabling vsync. I heard about tearing effects, but I don't exactly know what this is.

Should I enable or disable vsync?

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

1 Reply

· Add your reply
  • Sort: 
avatar image
9
Best Answer

Answer by Eric5h5 · Mar 02, 2013 at 06:56 PM

iOS devices, at least, are always vsynced, so you don't get to choose. Tearing is when the screen updates in the middle of drawing it, so the top part is offset a bit from the bottom part. This isn't an issue in iOS, since as I mentioned you can't turn vsync off anyway.

Comment
Add comment · Show 4 · 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 xikky · Mar 02, 2013 at 07:02 PM 0
Share

Thanks eric! Does it make sense to make a build without vsync for Android and a build with vsync of iOS?

avatar image Eric5h5 · Mar 02, 2013 at 07:06 PM 0
Share

I don't have any experience with Android; for all I know it's the same deal as iOS.

avatar image xikky · Mar 02, 2013 at 07:11 PM 0
Share

I'm sorry for questioning again, but is it a good sign to have a high percentage of WaitForTargetFPS in profiler? this is showed up when vsync is enabled.

avatar image Eric5h5 · Mar 02, 2013 at 07:31 PM 4
Share

That means the CPU is waiting for the GPU so it can send the next frame. It's not really good or bad, though if it's high that would tend to indicate that you have more breathing room as far as CPU usage goes. $$anonymous$$eeping in $$anonymous$$d that profiling the editor running on a desktop doesn't really tell you anything about actual iOS or Android performance.

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

10 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

Related Questions

Mobile game - should I reduce my vertex count? 1 Answer

Android performance VS IOS 1 Answer

Android heating up, performance questionable for 2d APP. 1 Answer

Performance degradation on Android and iOS switching between scenes 2 Answers

Profiler Alpha Mobile 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