Search Unity

2D Lightweight Render Pipeline leads to heavyweight GC ?

Discussion in '2D' started by zapposh, Sep 19, 2019.

  1. zapposh

    zapposh

    Joined:
    Nov 12, 2016
    Posts:
    117
    So, I decided to go down the Lightweight Render Pipeline path with 2D render data since Pixel Perfect is now integrated within the package.
    This leads to 1.2 KB garbage alloc / frame!
    - 0.7 KB for GUI.Repaint (this drops to 0.4 KB if Pixel Perfect is disabled = not a solution)
    - 0.5 KB for the RenderPipelineManager, for RenderSpritesWithLighting -> Create Render Textures

    Why?
    I have NO lights in the scene, all light options are disabled, and all of the sprites use the standard unlit sprite material (not the new Sprite-Lit-Default)