Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

Why you're getting a mystery TempBuffer on mobile device after removing Post Processing from project

Discussion in 'Editor & General Support' started by sampenguin, Jan 28, 2019.

  1. sampenguin

    sampenguin

    Joined:
    Feb 1, 2011
    Posts:
    16
    https://issuetracker.unity3d.com/is...r-does-not-disable-cameras-m-forceintort-flag

    Took me a couple days to track down this issue, happening in 2018.3.1f1. Cross posting it here so anyone else googling for "what is creating TempBuffer unity mobile ios" might stumble across it and not beat their head against a wall for days.

    Basically if you ever used Unity's Post Processing stack in your project, then removed it when you realized it is death on mobile devices, it doesn't clean itself up all the way on any camera that had a Post Process layer attached to it. The fingerprints are if you run the profiler and open the rendering frame debug window, you'll see an unnecessary execution of "Camera.ImageEffects" calling a Hidden/BlitCopy shader and copying this buffer to your final window target.

    The quick workaround is to turn debug mode on Inspector on your camera object, then turn off the "Force Into RT" checkbox. Instant performance and memory win!

    Unity's PP stack should really come with a giant red flag warning to NOT use it on mobile targeted projects.