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 /
This question was closed Oct 23, 2013 at 01:30 AM by meat5000 for the following reason:

Question encourages long discussion. Question answered and unattended

avatar image
0
Question by brandon199511 · Mar 18, 2013 at 04:47 PM · animationspriteflashpngsequence

Is there a better way of using 2D PNG Sequence Animations?

I have been making a game with the same idea of using 2D monsters as like in Pokemon, however the monsters are made in flash and exported as a png sequence. This however has run the project high in space. The meta folder is insane with gigs. Is there a better way of doing this?

Also this runs up the ram while Unity is running and i can no longer use my desktop as it constantly crashes.

Thanks, Brandon

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 robertbu · Mar 19, 2013 at 02:19 AM 0
Share

How are you displaying your monsters? Are you using an atlas to store images, or are you using the individual frames?

avatar image Tarlius · Mar 19, 2013 at 05:48 AM 0
Share

There may be something on the asset store that will play flash animations for you. A png for each frame is going to be massive, if the frames have any detail to them (one reason Pokemon's are so simple)

Another trick you could use to lower the filesize (to 25% or so maybe) is limiting the colors. I'm guessing you already tried compressing the textures?

However, finding something that will play flash-style animations will have a much bigger effect on memory usage (down to ~5% or so). I know SpriteStudio does this, but I don't know if theres an English version.

As for unity loading too much, you might want to consider breaking things down into asset bundles, which you can load asynchronously as need and unload when done with them (SpriteStudio I know does this for you automatically).

1 Reply

  • Sort: 
avatar image
1

Answer by whydoidoit · Mar 19, 2013 at 05:55 AM

If your PNGs are not a power of 2 size and you are not using an atlas (and you are not using Unity 4.1) they will be a total memory hog. Use NGUI/2D Toolkit/Othello etc to draw atlased sprites and you'll find a massive performance improvement and a lower memory footprint.

Be aware that a PNG file is a compressed file on disk - when it is loaded it turns into an uncompressed set of bytes in memory (probably 4 * number of pixels). Worse than that, if it isn't a power of 2 size (NPOT) then it eats lots of buffers as Unity tries to fix it so that it is (unless you are using 4.1).

You can have then tiniest PNG or JPEG eat many MB of memory due to this effect.

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

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

Assets corrupted and couldn't build in standalone player 0 Answers

Png Sequence importing in unity 2 Answers

Simultaneous Animation for an Object 0 Answers

How to make a Spring in a 2D game in unity? 0 Answers

I cannot make AnimationClip changing some Sprites without AnimationController. 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