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
0
Question by Bincredible · Sep 13, 2017 at 12:30 PM · ios2d-platformerframerateperformance optimization

Slow performance on 2D iOS platformer

Hi, I am making a game similar to geometry dash but when I build the game to my iPad Air 2 through Xcode the frame rate is low and it makes it difficult to play. The game runs fine at greater than 300 fps in the editor but I am aware that the iPad is not as fast as my mac. There isn't really much going on in the scene apart from the player moving and sections of the level activating or deactivating depending on whether the player is near it or not. I will also add that I have used the override for iOS option to lower the size of the sprites and they are all less than 10 KB in size. My question is what do I need to do in Unity to make the game run as smooth as geometry dash where the frame rate is high and smooth? Thanks

Comment
Add comment · Show 3
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 OusedGames · Sep 13, 2017 at 01:10 PM 0
Share

Hello buddy,
once I had a problem that in the editor the game would run flawlessly, but when build (Android), terrible framerate, and I found that the problem was the unity version. The problem might be on your game structure, but there's a chance that your unity version is causing this.
Hope it works

avatar image OusedGames · Sep 13, 2017 at 01:12 PM 0
Share

Hello buddy,
Since you said that you sprites are really small, maybe some of your code is causing the problem. You should Google for Unity best practices, a lot of thing to learn. Cheers

avatar image Bincredible OusedGames · Sep 13, 2017 at 02:23 PM 0
Share

Thanks for your input to get this solved. The code is something which I have looked into a lot to see if anything was unnecessary but $$anonymous$$aplica's answer has worked for me to add a script with Application.targetFrameRate = 60;

1 Reply

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

Answer by kaplica · Sep 13, 2017 at 12:41 PM

Try targeting the frame rate to 60.

Application.targetFrameRate = 60;

Comment
Add comment · Show 1 · 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 Bincredible · Sep 13, 2017 at 02:27 PM 0
Share

Thanks a lot for this it works perfectly!

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

98 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 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

Is iOS hardware always locked at 60hz? 1 Answer

Unity 2D demonnstration game goes slowly on Galaxy S3. 0 Answers

How to get better performance on mobile? 1 Answer

iOS app 30 fps but laggy 0 Answers

Performance/framerate issue 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