• 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 Cervelx · Apr 23, 2017 at 02:26 PM · textureoptimizationmaterials

A question on the optimization... (mobile 3D game)

Simply question: For a mobile game, is better four 256 textures and four materials or one material and a 1024 texture ? ( 4 texture in 1 ), thank you :)

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 Bryangs · Apr 23, 2017 at 09:13 PM 0
Share

Well that's strange...

From my point of view, Having 4 different textures and materials would make it harder for the system to identify and assign those on the game, but it would be better for the size of the application overall. Now having just 1 texture and 1 material is a lot better to identify and assign, but it's bad for size so... It's some kind of 50/50 thing. I guess none of them would actually matter...

2 Replies

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

Answer by Bunny83 · Apr 23, 2017 at 11:45 PM

In mobile games you should keep your draw calls (set pass calls) as low as possible. Every seperate material requires a seperate setpass call. The main point of using an atlas texture is to reduce the drawcalls. Unity will automatically batch objects with the same material together if possible and draw them in one go.

However using an atlas requires you / Unity to do some additional setup work. For example 3d models have to adjust their unwrap (UV map) so it's using the right portion of the texture.

If you're able to fill all the space of your atlas texture, there's no other disadvantage. Though if you pack textures of different sizes into one atlas, there's usually some "wasted" space. However that's usually neglectible.

ps: textures are two dimensional data so they have a width and height. If you have 4 256x256 textures you need one 512x512 texture to pack them together. A 1024x1024 texture could include 16 textures of the size 256x256.

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 Cervelx · Apr 24, 2017 at 09:19 AM

thank you !!!!

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

87 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 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 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 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

Some texturing questions... 2 Answers

Is it bad to have this many materials? 2 Answers

optimizing game material with emission map? 0 Answers

Trying to change material 0 Answers

A Shader to Duplicate and Flip a texture 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges