Search Unity

Deferred rendering, point lights batches.

Discussion in 'General Graphics' started by koirat, Oct 16, 2019.

  1. koirat

    koirat

    Joined:
    Jul 7, 2012
    Posts:
    2,073
    Deferred Rendering:

    In my scene when I activate my Point Lights (count 480) all with minimal settings (no shadows one layer disabled), my batches raises by 960 and unfortunately with this my frame-rate drops from 65 to 50 (in editor).

    I play a little with Frame Debugger and I see that every light needs two Draw Mesh events.

    First with shader Hidden/Internal-StencilWrite
    Second with Hidden/Internal-DeferredShading

    All my lights are the same.
    Is it some kind of a mistake on my side, since it just begs for batching.
     
  2. mowax74

    mowax74

    Joined:
    Mar 3, 2015
    Posts:
    97
    I have the same question. How can it be, that the point lights produce that amount of batches (i have around 900 batches as well, with 30 lights). Even with forward shading the batch count is lower (around 800).
    I thought the idea behind the deffered shading is that you can have only a few batches with a large light count.
     
  3. koirat

    koirat

    Joined:
    Jul 7, 2012
    Posts:
    2,073
    It looks like Built In Deferred renderer don't batch or do instancing on lights by design.