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 bkevelham · Jun 22, 2015 at 02:43 PM · androidiosatlassprite packer

Atlas loading performance difference between Android and iOS?

We have a set of about 35 fairly large sprites (generally 2048 x 1024) in our application. Functionally all is fine. However, for iOS PVRTC compression this is an issue, since it needs square input.

We had the idea to have the sprite packer combine them in to nice square sprites that can be compressed. While unfortunately Unity doesn't seem to pack 2 such sprites into a nice square, we still got quite a significant benefit out of the compression (even when it essentially contains half a texture worth of unused pixels) and runtime performance improved significantly.

While not perfect, happy with at least some improvement there, we built an Android version. But unfortunately on that platform performance seems to have crawled to a halt. Where before performance for individual sprites was instant, loading them now takes seconds on a device like the Nexus 5.

  • Compression settings are ETC 4 bits in either Android scenario for most sprites. And RGBA32 for a handful of smaller sprites that do get nicely packed.

  • The iOS test device was an iPhone 4s, the lowest device we support.

  • The Android test device was a Nexus 5 running Android 5.1.1

  • Unity version is Unity 5.1.0p1

Is there any obvious difference regarding sprite packing (atlassing) between Android and iOS that could explain such a difference? Anything in particular I could look at?

Comment
Add comment · Show 2
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 Jessespike · Jun 23, 2015 at 08:39 PM 0
Share

I haven't experimented with ETC2 compressions yet, but I know ETC1 has several compressions ranging from Best (slowest loading, best quality) to Fast (fastest loading, lesser quality). ETC2 is only supported for OpenGL ES 3.0 devices, whether this is slower/faster than ETC1 and if other implications are brought forth, I'm not sure yet. These are the initial differences that I can think of between iOS and Android.

35 textures sized at 2048x1024 is a lot. RGBA32 tend to have huge filesizes as well. Loading all that in a few seconds seems reasonable. Perhaps you can get away with smaller resolutions and RGBA16.

I realize this comment doesn't answer your question, but hopefully it brings new insights and ideas to your problem.

avatar image bkevelham · Jun 24, 2015 at 08:01 AM 0
Share

The thing is, I'm not loading/using it all at the same time. Sure, atlassing would seem to imply that, but it's spread over multiple pages. And I would assume it's smart enough to not load all pages at once when it needs only one? I'll poke around a bit more to see if that is what is really happening and if that is even faster than I thought on iOS. Regarding ETC, I'm on ETC1. So unsupported ETC2 won't be the problem.

Thanks for the pointers though. $$anonymous$$uch appreciated.

0 Replies

· Add your reply
  • Sort: 

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

20 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

Related Questions

Questions about Sprite Editor and Atlas, iOS 0 Answers

OpenCV - Mobile Devices Query 0 Answers

Strange graphic bugs with Vuforia on Android and iOS 0 Answers

iOs weird textures (good on android) the reason? How to fix ? 1 Answer

Textures with Packing Tag exported alone 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