Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Mip Streaming on Android, SystemInfo.supportsMipStreaming is 'true' now

Discussion in '2018.2 Beta' started by Trober256, Jun 20, 2018.

  1. Trober256

    Trober256

    Joined:
    Nov 14, 2016
    Posts:
    3
    Is anyone having success with mip streaming on android? As of 2018.2.0b8 supportsMipStreaming is returning true on android builds on my S8. But on both 2018.2.0b8 and 2018.2.0b9 I'm not seeing any change in memory use while the windows standalone builds work fully as documented here: https://docs.google.com/document/d/1P3OUoQ_y6Iu9vKcI5B3Vs2kWhQYSXe02h6YrkDcEpGM/edit

    Texture2D.streamingTextureDiscardUnusedMips is true.
    Texture streaming is enabled on all quality levels with a memory tight budget to see how it works.
    Tried standard RP and LWRP with GLES2, GLES3, Vulkan.

    When I loop through my textures at runtime on android to check them I'm seeing .loadedMipmapLevel is 0 and .streamingMipmaps is true. When I lower streamingMipmapsMemoryBudget on windows builds I am able to see the lower mips but on android nothing happens.
    Any suggestions?

    Previous thread from before supportsMipStreaming returned true: https://forum.unity.com/threads/about-texture-mipmap-streaming.527602/
     
  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    Hi Trober256,
    It could be the apk compression format. It needs to be set to lz4 compression rather than the default compression. Could you check that please and report back?
     
    Peter77 and Trober256 like this.
  3. Trober256

    Trober256

    Joined:
    Nov 14, 2016
    Posts:
    3
    Thanks LeonhardP, switching to lz4 compression did the trick!
     
    LeonhardP likes this.