Search Unity

Is it better to have two "smaller" lightmaps or one big one?

Discussion in 'General Graphics' started by noahx, May 30, 2018.

  1. noahx

    noahx

    Joined:
    Nov 22, 2010
    Posts:
    77
    Hi,
    I've been doing some tests to identity if there's a difference in performance if I use 2 1024x1024 lightmaps versus using 1 2048x2048 but I haven't found any in my limited tests.
    Considering I'm targeting mobiles, what's the recommendation? To use two smaller lightmaps or one big one? Performance wise of course. What's the best practice in that aspect?

    Thansk
     
  2. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Generally, if draw calls and setpass aren't bothering you much then its best to have more lightmaps. But if you're hurting then go for less lightmaps and less state changes.

    It'll be different for each project. So test. My prediction? it will make almost no difference to you. Just bear in mind that this choice, like most things in Unity is project dependant.

    That is why there is a choice at all.