Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Question Does increasing the number of baked lights have any additional runtime performance costs?

Discussion in 'Global Illumination' started by Sir_patrickl, Mar 17, 2023.

  1. Sir_patrickl

    Sir_patrickl

    Joined:
    Jun 24, 2013
    Posts:
    44
    For example, if I had a street lamp with four sides, would using 4 smaller baked point lights on each face vs a single point light above have any impact on the baked lightmap size or runtime performance? Obviously it would take longer to bake but only asking about the final result.

    If it matters I'm only concerned with URP.
     
  2. jiaozi158

    jiaozi158

    Joined:
    May 24, 2020
    Posts:
    23
    No performance impact if the baking mode is set to "Bake Indirect" or "Subtractive".

    Note: mixed lights are considered as real-time lights too.
     
    Sir_patrickl likes this.
  3. Sir_patrickl

    Sir_patrickl

    Joined:
    Jun 24, 2013
    Posts:
    44
    Ok thanks, that's good to know. I started adding quite a few and wanted to make sure I wasn't going to regret it down the line. I'm using "Bake Indirect" and "Subtractive" so should be good!
     
    jiaozi158 likes this.