Search Unity

Auto Exposure Mobile Problem

Discussion in 'General Graphics' started by UnityLighting, Apr 9, 2021.

  1. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,874
    Hi

    i have converted and optimized legacy image effects tonemapper (eye adaptation) for mobile platform
    It works well on Honor 10 Lite android device with Mali-G51 MP4 gpu without performance lost (only 1 ms overhead):
    Untitled.jpg


    But when i tested on Samsung j5 with adreno 306 gpu, the screen becomes pixelated:
    photo_2021-04-09_13-14-01.jpg


    In my opinion, the only thing that can cause this problem is RenderTextureFormat

    What RenderTextureFormat do you think is suitable for poor mobiles?



    Code (CSharp):
    1. private bool CreateInternalRenderTexture()[/B][/B]
    2. [B][B][/B]
    3. [B]        {[/B]
    4. [B]            if (rt)[/B]
    5. [B]            {[/B]
    6. [B]                return false;[/B]
    7. [B]            }[/B]
    8. [B]            rtFormat = SystemInfo.SupportsRenderTextureFormat(RenderTextureFormat.RGHalf) ? RenderTextureFormat.RGHalf : RenderTextureFormat.ARGBHalf;[/B]
    9. [B]            rt = new RenderTexture(1, 1, 0, rtFormat);[/B]
    10. [B]            rt.hideFlags = HideFlags.DontSave;[/B]
    11. [B]            return true;[/B]
    12. [B]        }