Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Extra draw call on Spotlight out of range

Discussion in 'General Graphics' started by Fieryrat, Dec 4, 2023.

  1. Fieryrat

    Fieryrat

    Joined:
    Mar 11, 2013
    Posts:
    1
    Hi all!

    I'm making a mobile racing game and am currently adding dynamic lights from car headlights. During optimization I ran into an issue where Spotlight was causing an extra draw call on objects that were out of its reach. Later I noticed that this behavior was repeated on both the Projector and a regular Сamera.

    What could be wrong? Is this a feature of Frustum Culling or is it an incorrect setting?

    Запись экрана 2023-12-05 в 03.50.21.gif

    I'm using Built-in Render and Unity 2021.3.28f1. I noticed the same behavior on versions 2021.3.33f1 and 2022.3.14f1
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,879
    You could make a bug report, but not sure if BiRP will get many more fixes