Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
0
Question by Orizoth · Jul 03, 2013 at 03:08 PM · fpsiphonexcodeslowdrawcalls

Help Please - Unity3D project very slow on XCode-IPhone...

Hello, We builded a word game in Unity on Mac, and build it to XCode. We have a main menu at start of the game. There are 2 buttons. Start and About. When we click on about, it works fast. But when we touch on Start Game, we wait more than 10 seconds for the game scene.

In Unity Stats we get Main Tread : 13.5 ms Draw Calls : 29 Saved by Batching : 11 FPS : Around 80 Tris : 1.4k Renderer : 0.4ms Used Textures 10-16.8 MB VRam Usage : 5.3 MB to 22.3 MB

alt text

When we test the game, it works fine on Windows and Mac build. But on iphone and ipad, we wait for clicking on gui's and collider objects. We have 85 jpeg files (512px*512px) and a 1*1 polygon mesh prefab in resources folder. We used transparent materials with pngs.

After waiting for 10 second the main game loads, and everything in the scene is very slow. We are loading the jpg textures during game play. I deleted the pictures folder and test it again, it's the same as slow like before.

Any help would be appreciated...

stats.jpg (43.6 kB)
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 Graham-Dunnett ♦♦ · Jul 03, 2013 at 03:21 PM 0
Share

Try using the built in profiler. Presumably the 10second wait is the time it takes to load your scene. There are loads of hints and suggestions on the Unity website (and here) about how to make sure your game design suits the unusual capabilities of a mobile device.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Orizoth · Jul 03, 2013 at 04:29 PM

We've realized that we are changing a 3D textmesh property in runtime. This was the problem and solved. Thanks for the reply.

We had 3 different 3D Text in the scene. Level Name, Gold Count and Word Area. These 3 Text Meshes updated in runtime. This situation made the game work so slow on iphone.

We just changed all 3D Texts to GUI objects, and now the game runs perfect.

The only problem we have now is fixing the positions of GUI's. The text is at different positions on different resolutions. ( IPhone, IPad, Unity Game View )

What we use in script is;

 rectWord = new Rect(GuiDistanceToBorders, Screen.height / 2, Screen.width * 0.6f, GuiTextHeight);

Any ideas would be appreciated...

Thanks..

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

16 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

Related Questions

moving thousands of objects is very slow, Draw calls 2 Answers

My app file size doubles that of what the console says it should... 1 Answer

Mix native Objective-C code and Unity3d 0 Answers

xcode build fail - Mach-o linker error 3 Answers

OpenGLES error 0x0502 in iOS 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