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
1
Question by fernio · Apr 19, 2013 at 07:49 PM · textureresolutionipadretina

Which resolution is used when "Auto (Best Performance)" is selected?

In the studio I work for, we're developing a game for iPhone and iPad, and I'm seeing that the art team is using very large textures for the GUI. They say it's because they want the textures to look good on a retina iPad, but our player settings are configured to automatically choose a resolution (the "Auto (Best Performance)" setting).

Which resolution does Unity choose on a retina iPad when "Auto (Best Performance)" is selected? If it's less than 2048x1536, then I can go to the art team and ask them to resize our textures and gain some memory back.

Thanks.

Comment
Add comment
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

1 Reply

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

Answer by whydoidoit · Apr 19, 2013 at 10:39 PM

It sets it to 75% of the actual screen resolution.

Comment
Add comment · Show 4 · 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 whydoidoit · Apr 19, 2013 at 10:40 PM 1
Share

60% on iPhone4 and 50% on iPad1

avatar image fernio · Apr 22, 2013 at 01:22 PM 0
Share

Thanks. Is this information available anywhere in the documentation?

avatar image whydoidoit · Apr 22, 2013 at 01:27 PM 0
Share

No it's in the XCode project.

avatar image whydoidoit · Apr 22, 2013 at 01:29 PM 1
Share

This routine in AppController.mm - note $$anonymous$$e are different as I've modified it to support a lower resolution on iPhone4

 static void
 QueryTargetResolution(int* targetW, int* targetH)
 {
     int targetRes = UnityGetTargetResolution();
 
     float res$$anonymous$$ult = 1.0f;
     if(targetRes == kTargetResolutionAutoPerformance)
     {
         switch(UnityGetDeviceGeneration())
         {
             case deviceiPhone4:     res$$anonymous$$ult = 0.5f;     break;
             case deviceiPad1Gen:    res$$anonymous$$ult = 0.5f;     break;
 
             default:                res$$anonymous$$ult = 0.75f;
         }
     }
 
     if(targetRes == kTargetResolutionAutoQuality)
     {
         switch(UnityGetDeviceGeneration())
         {
             case deviceiPhone4:     res$$anonymous$$ult = 0.8f;     break;
             case deviceiPad1Gen:    res$$anonymous$$ult = 0.75f;    break;
 
             default:                res$$anonymous$$ult = 1.0f;
         }
     }
 
     switch( targetRes )
     {
         case kTargetResolution320p:
             *targetW = 320;
             *targetH = 480;
             break;
 
         case kTargetResolution640p:
             *targetW = 640;
             *targetH = 960;
             break;
 
         case kTargetResolution768p:
             *targetW = 768;
             *targetH = 1024;
             break;
 
         default:
             *targetW = _mainDisplay->screenSize.width * res$$anonymous$$ult;
             *targetH = _mainDisplay->screenSize.height * res$$anonymous$$ult;
             break;
     }
 }

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

12 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

Related Questions

Dynamically choosing a high resolution texture at runtime on iOS devices 1 Answer

Rendering at 2048x1536 on the new Retina iPad? Most Stable version of XCode for Unity 4 beta? 0 Answers

what is best way to deal with text? 1 Answer

GameObjects appear different on device than on Unity3d scene mode 2 Answers

Can I improve the resolution quality of a photosphere applied as texture to a 3d sphere gameobject? 1 Answer


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