Search Issue Tracker

Fixed in 2022.2.X

Duplicate in 2020.3.X, 2021.3.X



Found in





Issue ID




Garbage is allocated when GraphicsBuffers constructor and other APIs that returns GraphicsBuffers are called

Graphics Device Features


1. Open the attached project ""
2. Open Assets/Scenes/TestMeshGetVertexBufferDoesNotAllocateMemory.unity
3. Open Window > Analysis > Profiler
4. In the Profiler window ensure that the "record" icon is red and the mode dropdown shows "Play Mode"
5. Enter Play Mode
6. Go to the Profiler window and click the CPU Usage graph
7. In the detailed view navigate to PlayerLoop > Update.ScriptRunBehaviorUpdate > BehaviorUpdate > ProfilerMarkersForCreatingGraphicsBuffer.Update() [Invoke] > Repro > Allocation
8. Observe the GC.Alloc

Expected result: < 50 B of garbage is allocated
Actual result: > 330 B of garbage is allocated

Reproducible with: 2021.2.0a18, 2021.3.4f1, 2022.1.6f1, 2022.2.0a16
Not reproducible with: 2020.3.36f1, 2021.2.0a17
Couldn't test with: 2019.4.39f1 (Couldn't resolve console errors)

Reproducible on: Windows 10

  1. Resolution Note (fix version 2022.2):

    Fixed in: 2022.2.0a17

Comments (62)

  1. richardweaver120

    Dec 08, 2022 12:29

    Desperately in need of a legitimate hacker to help you recover your lost or stolen crypto assets, spy and monitor a suspected cheating partner, website hacks, phone cloning, credit score upgrade, and many more. contact HACK MAVENS, they are the best for the job. Below is their contact information;

    Email: H A C K M A V E N S 5 (AT) GMAIL DOT COM
    Call/Text/WhatsApp: + 1 (209) 417 – 1957

  2. tatbi9

    Apr 11, 2022 22:42

    I have the same Problem

    my post:

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.