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 GaMaYa · Aug 03, 2011 at 07:43 PM · fpsiphoneprofilerspritemanagercamera.render

iPhone Camera.Render is slow on Profiler

Hi!

I'm making a 2D game for iPhone with Unity3D and SpriteManager2.

When I launch the game on my iPhone 4, the FPS is very slow, and the profiler shows me some strange values: - the Camera.Render needs more than 100ms to do its job every frame ; - sometimes, Camera.Render needs only 7-8ms, but the Device.Present needs more 100ms.

If I understand, Device.Present is just indicated that CPU is waiting for GPU, but is it normal that CPU waits more than 100ms?

Does anyone have any idea?

Thank you!

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 Xroft666 · Aug 17, 2011 at 08:32 AM 0
Share

The same thing. I mean, that iPhones and iPads forces framerate to be 30, so we just cant switch off the vSync. Because of Device.Present I have only 5 fps on my iPad and I can do nothing with it :(

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Nabeel Saleem · Mar 19, 2014 at 10:34 AM

apply these steps: if you have moveable character then use lightprobs: bake scene: use occlusion culling: then turned off lights after baking. you will see big difference :)

unity3diy

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 GaMaYa · Aug 17, 2011 at 12:26 PM

The problem was the bad use of the shader.

I see some tutorial using SpriteManager with "Transparent/Vertex Colored", but it's very slow for iPhone (and I don't know why, Device.Present needs more time, maybe a problem with the video bus, or something else).

So I used the speed shader of Unity like "Mobile/Particles/Alpha Blended" and it ran better (I won 20FPS).

I also optimized the batch render of Sprite Manager and reduce the culling by deactivate somes Game Object not on screen (I won 3ms by frame).

At the end, I didn't need "Good" Quality Settings, so I changed it to "Fastest", but I kept "Texture Quality" on "Full Res".

Some people said to change "Script Call Optimization" (Player Settings on iOS) from "Slow and Safe" to "Fast but no Exceptions" but it maked my application crashed. I will look for this problem later.

With all of that, my game run at 30fps on iPhone 4, iPad 1 and 2, and ~25fps on iPhone 3GS.

Now I'm trying to reduce the Game Object count (I have 2400~5000 by level).

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

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Low FPS after updating to Unity5. 0 Answers

Other scenes influencing performance ? 2 Answers

Profiler.CollectGlobalStats Problem 0 Answers

Can I change movement from Unity 3d into Unity 3D iOS 2 Answers

Game runs smoother when profiling on an iPad 2/iPhone 4s, sluggish otherwise 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