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 Jaap Kreijkamp · Dec 09, 2009 at 05:40 AM · textureiphoneperformanceoptimization

using non-square textures on iphone

EDIT reformulated question to better express what I want to know:

I need to use uncompressed (16bit RGBA) textures for the HUD and as we're running out of space on our square texture. I was wondering if there was an extra performance penalty in using non-squared, uncompressed textures versus squared uncompressed textures. And if not, it still matter if texture is power of 2 sized?

Thanks, Jaap

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

3 Replies

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

Answer by Jaap Kreijkamp · Dec 15, 2009 at 11:09 PM

I've been looking around on the internet as I still haven't gotten a solid answer (sorry equals, thanks for answering but you're a bit vague, stating that there should be no difference and then that you don't get the full benefits of square en po2). What I've found is that when working with uncompressed textures:

  • Non-square textures aren't a problem or a performance overhead versus squared.
  • Sizes should still be power of 2.
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
avatar image
1

Answer by equalsequals · Dec 09, 2009 at 04:38 PM

In short, HUD elements should not be compressed.

PVRTC is good for textures and "real world" images, not for vector or something that needs to appear sharp and crisp.

There is obviously going to be some penalty because you are keeping raw uncompressed bitmap data in memory.

In a game we released, we had several 480x320 uncompressed textures for menu screens. We also had several smaller non-power-of-two images for elements as well.

The key here is to only use as much as you need, when you need it. This might mean loading in some stuff from Resources at run-time and then destroying them and enabling them for collection during GC passes.

Hope that helps,

==

Comment
Add comment · Show 2 · 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 Jaap Kreijkamp · Dec 10, 2009 at 12:28 AM 0
Share

Thanks for your answer. I know there's a big penalty difference between compressed and uncompressed but I wanted to know if there's a penalty difference between uncompressed square and uncompressed non-square. We don't have a lot of performance to waste unfortunately.

avatar image equalsequals · Dec 10, 2009 at 12:43 AM 0
Share

Uncompressed is uncompressed, no matter how you spin it. There should be no difference.

In order to take advantage of PVRTC an image must be power-of-two. If your image is 1024x128 it is po2 but, in my understanding, does not get the full benefits of being square and po2.

avatar image
1

Answer by Rj · Apr 21, 2010 at 08:53 AM

I haven't yet confirmed this personally but in this forum post, killarkai from RedRocket suggests that peak memory usage (on load) is reduced when using square textures (although long-run usage would appear to be the same). This is only important when you're hitting the top of your memory budget but it can be a very significant difference.

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

No one has followed this question yet.

Related Questions

Difference between using *.psd and *.png files 2 Answers

help with iphone 3GS performance (polys and audio) 2 Answers

Which one is faster: bigger or tileable texture? 1 Answer

How to correctly import textures of any kind to the project? 0 Answers

How many 1024x1024 textures can an iPhone handle? 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