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
2
Question by MileSplit · Jan 22, 2017 at 01:08 AM · iosprofiler

Unaccounted time between Player end of Frame and Graphics.PresentAndSync taking up 86% of the profiler. ONLY ON IOS

Anyone ever ran into this? Like I said the game runs smooth as butter on android Mac or windows, but as soon as I put it on an iOS device the frame rate dropped to around 17-20 on my iPad.

Any ideas? Im at a lose. Thank you.

EDIT: When I disable both the plane I'm using for the ground and the directional light I use the Unaccounted time completely goes away. Its just a basic plane with a texture and a basic directional light. Nothin special.

Edit 2: Looks like it has to do with shadows, when I remove the ground (no way to cast shadows) it goes away even with the light in it.

Edit 3: It seems as though i am running into a problem on android also, but it under another name; Graphics.PresentAndSync is taking up a large portion of the cpu with absolutely nothing in the scene but a camera.

Comment
Add comment · Show 5
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 Bunny83 · Jan 22, 2017 at 01:36 AM 0
Share

As far as i know iOS will always clamp to the nearest supported framerate. That is usually either 60, 30 or 15 fps. So if the frame time is slightly higher than 33.3ms you will immediately drop from 30 fps to 15 fps.

I don't do any iOS development anymore so i can't say much about your issue. Though we don't know much about your project ^^.

avatar image MileSplit Bunny83 · Jan 22, 2017 at 03:05 AM 0
Share

I measured frame rate by 1.0 / time.deltaTime so maybe thats not accurate? But I definitly noticed lag while playing and im guessing its that weird Unaccounted time between Player end of Frame and Graphics.PresentAndSync thing.

As far as my game goes its a pretty simple 3d target shooter with trail renders and some rigid bodies. Im also using LeanTween some also. Interestingly enough the errors do not appear in the main menu scenes or the settings.

avatar image MileSplit · Jan 22, 2017 at 04:43 PM 0
Share

Just checked again, runs fine on android at 60fps with Graphics.PresentAndSync taking up most of the resources.

avatar image MileSplit · Jan 23, 2017 at 02:15 AM 0
Share

Edit 3: Please help! If you dont know how to help, can someone please point me to someone who could help me?

avatar image christiancrt · Feb 20, 2018 at 06:43 PM 0
Share

I ran into the same issue, but specifically when targeting gles2 devices with ios 10 or ios 9. So far, I tested with the iPhone 5, iPad 3 and 4 and iPod touch 5. Only the iPod touch does not seem to show the issue, at least it never takes more than 0.5 ms which is ok for me. Does not show up on metal devices AT ALL. I get this in the form of spikes up to 29 ms. $$anonymous$$SAA is off in my game for devices with retina display. I use Unity 5.6.5f1 and checked with p1 but no improvement. The spikes show up in a vampire-teeth like pattern, eg. sometimes lower, sometimes higher, sometimes not at all. It is definetly not a vSync issue, even though the pattern sometimes looks like it. If I render UI-Overlay only with all cameras disabled, it does not show up. If I activate the depth pass or more than one camera, things go berserk. The spikes get in at least every third frame and peak at about 44 ms.

If we are talking about the same issue, this has nothing to do with shadows. In some situations, my game replaces realtime shadows with raycasted sprite shadows. No difference.

Graphics.PresentAndSync points at the gpu being too slow and the cpu waiting for it. So I replaced shaders with simpler ones... no difference. But I think the android-matter is probably a different issue. However, some questions remain: - What shader did you use for the plane? - Does the issue persist if you disable shadows in the quality-settings? - How is your camera cleared? Skybox? Which shader? - Unity version? - tested iOS versions? - tested iOS devices?

There are a lot of people following this question. $$anonymous$$aybe others could add their observations to this, because I think we might need to issue a well crafted bug-report here. This thing is starting to annoy me big time.

edit: Ok, this thread is not 1 month old but actually 13 months. Sweet. Probably different issues. But gives me hope that it is actually me who did something wrong

0 Replies

· Add your reply
  • Sort: 

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

81 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

Related Questions

Unity iOS Not Returning Pages 0 Answers

Profiler Alpha Mobile 0 Answers

WTH Profiler not working with iOS? 1 Answer

Cannot turn Unity iOS internal profiler off 0 Answers

ios 64bit overhead spike after update unity5 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