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 grechzoo · Apr 26, 2014 at 04:11 PM · unity 2dperformancetexture2d

Long looping animated backgrounds in a 2D game.

I have ambitious plans for having a looping but fairly long animated background, I'm talking 5-10 seconds loop, so we are talking 240 background images in the least.

I'm just wondering, if this is possible, where do the textures go in a 2D unity project? the ram? or the gpu ram? what about laptops that have hardly any gpu ram, does unity know to put it into the ram instead.

And is it possible to even play 24 hi res images per second (remember again, I'm not talking 1meg+ pngs, but jpegs that will be around 200k per image.)

Is this just a totally stupid idea overall? i can accept that as the answer if it is.

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 Eric5h5 · Apr 26, 2014 at 05:17 PM 1
Share

PNG or JPEG (or anything else) is completely irrelevant since Unity never uses source images. They are only for importing into Unity. Once imported, the texture settings are all that matter (truecolor, 16-bit, etc.).

avatar image grechzoo · Apr 26, 2014 at 06:06 PM 0
Share

It will be for pc only.

I pretty much knew it would be impossible for iphone and android.

Still it sounds like a tough job, especially as ill want it to be playable on most 3 year old and newer laptops too.

I think I'll give it a miss on this idea then.

thanks for your input :)

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Wiki

Answer by ZenithCode · Apr 26, 2014 at 05:49 PM

I'm not a pro in this but I'll give it a shot.

AFAIK, the images will be loaded to the GPU Ram. So, in my opinion this is a bad idea because 200K Jpeg takes much more than that in memory.

E.g. If the texture is POT, lets say 1K *1K texture - this will take:

  • 4Mb with no compression - 960Mb total

  • 2Mb if 16-bit compression is used - 480Mb total

  • Approx 0.5Mb -1Mb if you use ETC (Android) or PVR (iOS) - 240Mb total

If you plan to have this running on mobile devices, its a definite no-no. If its for PC and you can use compression, than it might be OK.

**Converted to 'Answer' as I see that @Eric5h5 said the same thing regarding memory footprint.

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

22 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 avatar image avatar image

Related Questions

Is operating using GetRawTextureData faster that doing SetPixel/Pixels? 2 Answers

Using baked textures and about texture sizes? 1 Answer

Fastest way to draw a grid of textures 2 Answers

Better performance? GUITextures or Texture2D drawn in function OnGUI? 0 Answers

Draw tilemap with Texture2D.SetPixels: Performance and Memory? 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