Search Unity

Incorrect Statistics using URP

Discussion in 'Universal Render Pipeline' started by exec-tails, Jan 6, 2020.

  1. exec-tails

    exec-tails

    Joined:
    Jul 31, 2012
    Posts:
    5
    Hey everyone. I was just trying URP on 2019.3.0f3 and noticed that the values in the Statistics window seemed kinda off. "Tris" and "Verts" are way lower than they should be, and "Saved by batching" is actually a negative value. I was wondering if I'm the only one experiencing this, or if I'm misunderstanding those values somehow, because I couldn't find anything about this potential problem yet.

    Example:


    The scene has a quad and two cubes, but shows Tris 2, Verts 4, and Saved by batching -3. The lights are baked, there's no skybox, and no matter what basic objects I add, those numbers stay the same. They do go up when I add a skybox though, so apparently it counts only that.

    When using the 3D template I get the values 28, 56, and 0 respectively in the same scene, which should be correct. Is this a bug in URP?
     
    Last edited: Jan 7, 2020
  2. nikefootbag

    nikefootbag

    Joined:
    Jun 13, 2017
    Posts:
    19
    I've got the same issue. Seems it's not counting geometry past 2 Tris and 4 Verts :/

    Regarding the negative batching number, i've just been assuming it was a change by Unity as it's been like that for since maybe 2019.1?
     
  3. exec-tails

    exec-tails

    Joined:
    Jul 31, 2012
    Posts:
    5
    I reported this as a bug back when I created this thread, and it has been recognized as such with URP and HDRP. It appears like it's not gonna be fixed any time soon though.
    https://issuetracker.unity3d.com/is...stics-tab-reports-false-values-when-using-srp

    It only seems to happen with DirectX 11 however, and if you switch to DirectX 12 for example, even if it's just for testing, you see the corrects stats. In many cases that should at least serve as a workaround for now.
     
  4. phil_lira

    phil_lira

    Unity Technologies

    Joined:
    Dec 17, 2014
    Posts:
    554
    This is a known issue caused by SRP Batcher. If you disable SRP Batcher in the pipeline asset under "advanced" category stats window will worked but be aware of you disable SRP Batcher you might get worse performance.
     
    CD-ECEU likes this.
  5. floky

    floky

    Joined:
    Oct 6, 2010
    Posts:
    261
    The negative values for "Saved by batching" issue still happens on Unity 2019.4.1f1 using URP package 7.3.1.
    Pretty annoying to not be able to get a reliable number of how efficient batching (with SRP Batcher) is at a point in a project.
    Any ETA on this issue? Any ideas if it will it be fixed in the 2019.4.x cycle?
     
  6. unity_-_IxKPb71_BLAA

    unity_-_IxKPb71_BLAA

    Joined:
    Mar 15, 2020
    Posts:
    4
    i had 4 tris and 8 verts, now after disabling SRP Batcher i got 0 tris and 0 verts.
     
  7. unity_-_IxKPb71_BLAA

    unity_-_IxKPb71_BLAA

    Joined:
    Mar 15, 2020
    Posts:
    4
    Worked! thank you, i had to uncheck it from low; medium and high settings
     
  8. knas01

    knas01

    Joined:
    Feb 24, 2018
    Posts:
    176
    Bump time, this worked but when is this going to be fixed?
     
unityunity