Search Issue Tracker

Duplicate

Votes

94

Found in

2023.1.0b10

Issue ID

UUM-19089

Regression

Yes

RTHandles in URP causes memory allocation in multi-camera scenarios

--

-

Steps to reproduce:
1. Open the “Defender 2D” project
2. Open “Camera Stacking” scene
3. Enter Play Mode
4. Compare and observe memory usage in the Windows Task Manager or Activity Monitor

Expected result: Memory usage stays the same or even decreases
Actual result: Memory usage climbs at a rate of about 5 MB/min

Reproducible with: 2021.2.14f1, 2021.3.11f1, 2022.1.19f1, 2022.2.0b10, 2023.1.0a14
Not reproducible with: 2020.3.40f1, 2021.2.13f1

Reproduced on: macOS Monterey 12.2 (Intel)

Notes:
1# The issue is reproducible only in Editor
2# Removing the URP package fixes the issue

  1. Resolution Note:

    We have validated the repro project with the UUM-40249 fix and confirmed the issue is no longer reproducible.
    Based on our testing result, we close this case as duplicate.

    Quote from UUM-40249 fix resolution:
    "Fixed runtime performance drops when multiple views that uses incompatible RTHandle descriptors are rendered within a frame."
    Duplicate of https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-40249

Comments (25)

  1. PetraCephas

    Jul 18, 2023 14:37

    Sam in 2022.3.5f1 URP(latest) 3D

  2. Meatloaf4

    Jul 18, 2023 00:19

    I'm also getting this issue with Unity 2022.3.1f1

  3. AlexBourgeois

    Jul 10, 2023 13:53

    This issue is still being reported in Unity 2022.3.X and those reports are identified as Duplicate of this bug. It has been there for 9 months and not being able to use 2 cameras with one outputting to a RenderTexture is a major issue for lots of my projects. Any ETA, tip or workaround available ?

  4. vetasoft

    Jul 07, 2023 16:38

    This is a really big issue, it must be a top priority.

  5. nagasaidandu

    Jul 07, 2023 06:49

    This issue is happening in latest 2022.3.4f1 LTS also. Any ETA for this fix

  6. unity_o4hCMUvKOL1Thw

    Mar 15, 2023 12:20

    This issue is definitely taking a toll on our development and experience with Unity. Using 2022.2.5f1, hope it gets fixed asap.

  7. legalrick2

    Mar 15, 2023 09:09

    I'm using unity 2021.3.15f1 on windows with an AMD gpu and cpu (if that makes any difference). I created a new project from the 3d (URP) template. I played the empty sample scene, and watched the profiler's memory slowly tick up until it caused a large lag spike, when the garbage collection fired up. The memory suddenly dropped, but it kept climbing after. Is there no fix?

  8. Hayden-Verbrec

    Mar 15, 2023 06:40

    This issue is crippling our development timeline at the moment. Are any updates available for this? I've done extensive profiling and memory inspections on the issue, feel free to contact me.

  9. IzMePapa

    Mar 01, 2023 18:34

    This issue looks like its still present in Unity 2022.2.8 ~ why is it left out of known issues?

  10. Miguel_TagaiArts

    Feb 21, 2023 16:42

    Happening on 2022.2.5f1 as well. This seems to be stuck in plenty of Unity cycles at this point.

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.