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 cscotttaakan · Dec 07, 2013 at 10:54 PM · physicsiphoneoptimization

My framerate on iPhone is low, should I switch to 2D?

Hey guys, I'm currently developing an iPhone game. I have been using 3D objects for the scenery. It is essentially rectangle constructed from 4 unity cubes. Then on the inside I have other 3d objects as obstacles. Testing the game on the pc, it looks fine. When I test on the iPhone, the game looks a little more choppy, in addition to the physics looking choppy too. This game is not graphics intensive at all and was wondering why it was acting this way. Maybe I have too much GUI? I've looked at optimizations for the iPhone and have looked at the steps. I was thinking maybe it comes down to me using 2D instead of 3D?. The game essentially looks 2D because of the camera view, but I've never worked with 2D.alt text

screen shot 2013-12-07 at 2.50.22 pm.png (25.9 kB)
Comment
Add comment · Show 7
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 MrProfessorTroll · Dec 07, 2013 at 11:03 PM 0
Share

Well are you using Unity's Remote app or are you installing on your device every build? If you are using Unity's remote app, it will lag a lot and that is normal. The app is just there so you can use touch controls.

avatar image Eric5h5 · Dec 07, 2013 at 11:10 PM 0
Share

Look at the profiler and see what the issue actually is; it doesn't make sense to just guess.

avatar image cscotttaakan · Dec 08, 2013 at 01:33 AM 0
Share

@$$anonymous$$r. Professor Troll I am installing on the device every build.

@Eric5h5 I am using Unity free. It does not come with the profiler.

I researched some more and thought maybe it's because I am using OnGUI() intensive scripts? Although, there isn't much there in terms of GUI. Just a couple of buttons.

avatar image Eric5h5 · Dec 08, 2013 at 01:36 AM 0
Share

Yes, it does come with the profiler. I'm talking about the profiler that runs on the device, not the in-editor profiler.

http://docs.unity3d.com/Documentation/$$anonymous$$anual/iphone-InternalProfiler.html

avatar image Eric5h5 · Dec 08, 2013 at 03:29 AM 1
Share

It would be a lot better if you put the Translate functions in Update. Only GUI code should be in OnGUI.

Show more comments

1 Reply

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

Answer by cscotttaakan · Dec 08, 2013 at 06:56 PM

Alright guys, figured out problem just put your Transform.translate() function in the Update section. I previously had my translate function in OnGUI(). OnGUI may be called several times per frame where as Update is not. This made the movement look jittery because opposed to moving 1 unit every frame, it moved a couple units sporadically.

Thanks guys for your help!

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

18 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

Related Questions

Game build works fine in Android but is jittery in iPhone. 0 Answers

Collider Physics Optimization 1 Answer

Make objects easier to select 1 Answer

How to 'flick' objects in a 2d game 1 Answer

Can I stop a lerp completely when it gets to 20% of its original value? 3 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