Search Issue Tracker

Fixed in 2020.2.X

Fixed in 2019.3.X, 2020.1.X

Votes

0

Found in

2018.4.2f1

2019.2

2019.3

2020.1

Issue ID

1172032

Regression

Yes

Shadowmap memory size is reported inconsistently by the Profiler in different Unity versions

Graphics - General

-

How to reproduce:
1. Open tester-attached project (NewUnityProject.zip)
2. Build and Run the project in development mode
3. In the Editor open the Profiler window and profile the built player
4. Select the Memory module, Detailed view and take a memory sample
5. Navigate to Not Saved/RenderTexture/Shadowmap
6. Note the Shadowmap size
7. Capture a snapshot of the player via RenderDoc/Xcode
8. Calculate Shadowmap size and compare the results

Expected result: the Shadowmap size is reported correctly by the Memory profiler
Actual result: the Shadowmap size is reported incorrectly by the Memory profiler

Reproducible with: 2018.4.2f1, 2018.4.16f1, 2019.2.19f1, 2019.3.0f6, 2020.1.0a20
Not reproducible with: 2017.4.36f1, 2018.4.1f1

Notes:
Shadowmap sizes were tested with builds from the same project, because Editor reported different sizes as well
The following Shadowmap sizes are reported when comparing Unity Profiler with RenderDoc:

Player Screen Resolution: 2560 x 1440
----------------------------------------------------------------------
Ultra Quality:
2017.4.36f1 - 32 MB
RenderDoc - 32 MB(4096x4096 1 mips - R16_TYPELESS)

2018.4.16f1 - 96 MB
RenderDoc - 32 MB(4096x4096 1 mips - R16_TYPELESS)

2019.2.19f1 - 64 MB
RenderDoc - 32 MB(4096x4096 1 mips - R16_TYPELESS)

2019.3.0f6 - 64 MB
RenderDoc - 32 MB(4096x4096 1 mips - R16_TYPELESS)

2020.1.0a21 - 64 MB
RenderDoc - 32 MB(4096x4096 1 mips - R16_TYPELESS)
----------------------------------------------------------------------
Medium Quality:
2017.4.36f1 - 8 MB
RenderDoc - 8 MB(2048x2048 1 mips - R16_TYPELESS)

2018.4.16f1 - 24 MB
RenderDoc - 8 MB(2048x2048 1 mips - R16_TYPELESS)

2019.2.19f1 - 16 MB
RenderDoc - 8 MB(2048x2048 1 mips - R16_TYPELESS)

2019.3.0f6 - 16 MB
RenderDoc - 8 MB(2048x2048 1 mips - R16_TYPELESS)

2020.1.0a21 - 16 MB
RenderDoc - 8 MB(2048x2048 1 mips - R16_TYPELESS)

  1. Resolution Note (fix version 2020.2):

    The bug that reported shadow map sizes incorrect was identified and fixed.

    Fixed in 2020.2.0a2

  2. Resolution Note (fix version 2020.1):

    The bug that reported shadow map sizes incorrect was identified and fixed.

    Fixed in 2020.1.0b1

  3. Resolution Note (fix version 2019.3):

    The bug that reported shadow map sizes incorrect was identified and fixed.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.