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 JeppeNygaard · Jun 14, 2011 at 07:57 PM · fpsiphoneoptimizationipad

does the iPad have a max FPS

I'm currently doing the finishing touches on my first unity game for the iPhone/iPad, and I have a question on optimization.

throughout the game I use a max of 2000 tri's, I only have two different meshes which only use one material each and according to the stats view I never get above 10 draw calls. I only use one light source which is a point light with render mode "Not important".

Still I can't get my frame rate above 30 fps on the iPad. For my materials I was using 1024x1024 true color uncompressed TGA textures which I tried to reduce to 512x512 with default compression - this had absolutely no effect at all which made me wonder if the iPad has a maximum frame rate of 30fps

Can anyone help me here?

Thanks Jeppe

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 Jessy · Jun 14, 2011 at 08:15 PM 1
Share

http://www.google.com/search?client=safari&rls=en&q=unity%20ios%2030fps&ie=UTF-8&oe=UTF-8

2 Replies

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

Answer by Jeston · Jun 14, 2011 at 08:06 PM

IN the xcode project the appcontroller.mm file specifically search for the enum kFPS and change it to 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 JeppeNygaard · Jun 14, 2011 at 08:34 PM 0
Share

This was exactly the easy fix I was hoping for! - thanks Jeston

avatar image
1

Answer by attiksystem · Oct 16, 2012 at 05:44 PM

With recent Unity versions, there a new method now:

 using UnityEngine;
 using System.Collections;
 
 public class fps : MonoBehaviour {
     void Awake() {
         Application.targetFrameRate = 60;
         Debug.Log("FPS set to 60");
     }
 }

Attach this script to the main camera, for example.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Autoscaling interface for iphone 3gs and iphone 4 0 Answers

apple rejected app due to iphone & iPad resolution mismatch 1 Answer

GUI button fit on both iPhone and iPad 3 Answers

Sprites performance issue 0 Answers

Other scenes influencing performance ? 2 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