Search Unity

Huge memory gain: MSAA affects render texture size even in Deffered Only mode

Discussion in 'High Definition Render Pipeline' started by alexandre-fiset, Feb 26, 2020.

  1. alexandre-fiset

    alexandre-fiset

    Joined:
    Mar 19, 2012
    Posts:
    715
    I just found out that even if greyed out, the MSAA setting has a huge impact on runtime memory.

    In some cases, toggling it off reduced our game GPU memory usage by a whopping 45%.

    With MSAA
    upload_2020-2-26_17-3-45.png

    Without MSAA
    upload_2020-2-26_17-7-3.png

    Is there any reason for this behaviour or should I consider it a bug?
     
    Bordeaux_Fox and valarnur like this.
  2. Julien_Unity

    Julien_Unity

    Unity Technologies

    Joined:
    Nov 17, 2015
    Posts:
    72
    Indeed it seems like a bug. When setting lit shader mode to deferred only MSAA targets should probably not be allocated. We'll take a look at this, thanks for the catch!
     
  3. alexandre-fiset

    alexandre-fiset

    Joined:
    Mar 19, 2012
    Posts:
    715
    Alright! Case 1223441

    Thanks for responding.
     
    Bordeaux_Fox likes this.