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 Disaster · Aug 23, 2010 at 09:02 AM · textureoptimization

Texture mapping for performance

Hi,

I'm trying my best to use best practise in my game and optimize where possible. A friend of mine was saying how I should use a 2048x2048 texture for my ENTIRE level, so that the engine only has to load one texture file.

I can understand that logic behind trying to cram as much as I can into a texture, but it's certainly a much harder way of working especially when I want to make as many reusable prefabs as possible.

I was wondering if this is actually good advice, is using more texture files (and subsequently more materials) in my scene going to hurt performance?

Comment
Add comment · Show 1
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 getyour411 · Aug 18, 2013 at 07:55 AM 0
Share

You might want to look at the free version of NGUI for optimizing your GUI calls and its texture atlas; not really the same as your question re: the entire level, but I'm thinking along the same lines as you for my project - optimize - and stumbled on free NGUI.

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by jtbentley · Aug 29, 2010 at 02:28 AM

On a PC, you really do need to throw quite a lot of textures at it to hurt performance. However, you should always prototype fast, then optimise, optimise, optimise.

I have yet to build a PC App (I'm an iPhone guy, meh), but for iPhone I'll try squeeze as many things onto a single 1024x1024 texture as possible. Often, an entire level can be fit onto a single map, two at most.

Moral of the story is - Squeeze as much onto a single map as you can, but for the sake of ease, you can do it logically. Levels are a map, enemies are a single map, gui is all a single map, etc.

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
0

Answer by Jessy · Aug 23, 2010 at 09:52 AM

It's not worth making a texture atlas for the reason your friend is suggesting. If you're using the same shader, and shader settings, on multiple objects, it's often a good idea to make a texture atlas, because then all the objects can use the same material. With Unity iPhone, this will happen automatically with batching, and in other versions of Unity, you can use Mesh.CombineMeshes. (Batching may be a feature found in other versions of Unity in the future, but as of Unity 3 beta 5, it doesn't seem to be supported for the standalone or web platforms.)

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

1 Person is following this question.

avatar image

Related Questions

A node in a childnode? 1 Answer

Why does my game require so much rendering power? 1 Answer

textures vs textureless 2 Answers

Creating a shader that shows a texture through a decal 0 Answers

What is the simple way of applying Texture Atlas to Unity 3 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