Search Unity

Unwanted texture compression on Shield Tablet

Discussion in 'Android' started by SoftwareGeezers, Feb 17, 2020.

  1. SoftwareGeezers

    SoftwareGeezers

    Joined:
    Jun 22, 2013
    Posts:
    902
    Since swapping to Unity 2019 and Gradle builds, my textures are suffering visible compression on my nVidia Shield tablet where they don't on my Nexus 7 or phone. My large textures are colour compressed, posterised in the darks and with rainbow artefacts on a large transparent 'cloud' texture.

    How do I go about getting quality textures on the Shield Tablet?
     
  2. kaarloew

    kaarloew

    Joined:
    Nov 1, 2018
    Posts:
    360
    Do you have different build target for Shield Tablet? Or do you build just one .APK for all devices?
     
  3. SoftwareGeezers

    SoftwareGeezers

    Joined:
    Jun 22, 2013
    Posts:
    902
    One .apk (.aap!) for everything.
     
  4. kaarloew

    kaarloew

    Joined:
    Nov 1, 2018
    Posts:
    360
    Do you get any adb logcat errors when you start your game in Shield Tablet?
     
    SoftwareGeezers likes this.
  5. SoftwareGeezers

    SoftwareGeezers

    Joined:
    Jun 22, 2013
    Posts:
    902
    No errors. Tried setting texture compression to DXT (Tegra) with no change,. This looks suspicious though, as though 16 RGB buffer is being used...

    2020-02-19 13:33:36.301 26008-26008/com.softwaregeezers.ionAXXIA I/Unity: onResume
    2020-02-19 13:33:36.325 26008-26008/com.softwaregeezers.ionAXXIA D/phs:ipc-binder-client: phs: RegisterClient(): transact returned 0, NO_ERROR=0
    2020-02-19 13:33:36.325 26008-26008/com.softwaregeezers.ionAXXIA D/phs:ipc-binder-client: phs: RegisterClient() timeout is 5000
    2020-02-19 13:33:36.335 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: SetWindow 0 0x99ce8808
    2020-02-19 13:33:36.335 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: SetWindow 0 0x99ce8808
    2020-02-19 13:33:36.381 26008-26008/com.softwaregeezers.ionAXXIA I/Unity: windowFocusChanged: true
    2020-02-19 13:33:36.404 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: Enabling Unity systrace
    2020-02-19 13:33:36.414 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: [VFS] Mount /data/app/com.softwaregeezers.ionAXXIA-2/base.apk
    2020-02-19 13:33:36.463 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: [VFS] Mount /data/app/com.softwaregeezers.ionAXXIA-2/split_config.armeabi_v7a.apk
    2020-02-19 13:33:36.471 26008-26025/com.softwaregeezers.ionAXXIA I/Unity: SystemInfo CPU = ARMv7 VFPv3 NEON, Cores = 4, Memory = 1967mb
    2020-02-19 13:33:36.471 26008-26025/com.softwaregeezers.ionAXXIA I/Unity: SystemInfo ARM big.LITTLE configuration: 4 big (mask: 0xf), 0 little (mask: 0x0)
    2020-02-19 13:33:36.472 26008-26025/com.softwaregeezers.ionAXXIA I/Unity: ApplicationInfo com.softwaregeezers.ionAXXIA version 0.7.524 build 72120dd0-aecf-4ef5-95cb-04ab80ce256d
    2020-02-19 13:33:36.472 26008-26025/com.softwaregeezers.ionAXXIA I/Unity: Built from '2019.1/staging' branch, Version '2019.1.12f1 (f04f5427219e)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'armeabi-v7a', Stripping 'Enabled'
    2020-02-19 13:33:36.504 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: PlayerConnection initialized from /data/app/com.softwaregeezers.ionAXXIA-2/split_config.armeabi_v7a.apk/assets/bin/Data (debug = 0)
    2020-02-19 13:33:36.505 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: PlayerConnection initialized network socket : 0.0.0.0 55042
    2020-02-19 13:33:36.505 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: PlayerConnection initialized unix socket : Unity-com.softwaregeezers.ionAXXIA
    2020-02-19 13:33:36.506 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: Multi-casting "[IP] 192.168.1.33 [Port] 55042 [Flags] 3 [Guid] 1291549060 [EditorId] 622077742 [Version] 1048832 [Id] AndroidPlayer(NVIDIA_SHIELD_Tablet@192.168.1.33) [Debug] 1 [PackageName] AndroidPlayer" to [225.0.0.222:54997]...
    2020-02-19 13:33:46.534 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: Started listening to [0.0.0.0:55042]
    2020-02-19 13:33:47.078 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: [EGL] Attaching window :0x99ce8808
    2020-02-19 13:33:47.078 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: InitializeScriptEngine OK (0x9dba5fe0)
    2020-02-19 13:33:47.079 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: PlayerConnection already initialized - listening to [0.0.0.0:55042]
    2020-02-19 13:33:47.104 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: PlayerInitEngineNoGraphics OK
    2020-02-19 13:33:47.104 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: AndroidGraphics::Startup window = 0x99ce8808
    2020-02-19 13:33:47.104 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: [EGL] Attaching window :0x99ce8808
    2020-02-19 13:33:47.133 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: [EGL] Request: ES 2.0 RGB0 000 0/0
    2020-02-19 13:33:47.133 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: [EGL] Found: ID[28] ES 2.0 RGB16 565 0/0
    2020-02-19 13:33:47.133 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: GfxDevice: creating device client; threaded=1
    2020-02-19 13:33:47.134 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: [EGL] Request: ES 2.0 RGB0 000 0/0
    2020-02-19 13:33:47.134 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: [EGL] Found: ID[28] ES 2.0 RGB16 565 0/0
    2020-02-19 13:33:47.134 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: [EGL] Request: ES 2.0 RGB16 565 0/0
    2020-02-19 13:33:47.136 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: [EGL] Found: ID[28] ES 2.0 RGB16 565 0/0
    2020-02-19 13:33:47.136 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: extension is supported with value 0
    2020-02-19 13:33:47.136 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: extension is supported with value 2
    2020-02-19 13:33:47.139 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: ANativeWindow: (1920/1200) RequestedResolution: (0/0) RenderingResolution: (0/0) EGLSurface: (1920/1200)
    2020-02-19 13:33:47.203 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: Renderer: NVIDIA Tegra
    2020-02-19 13:33:47.203 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: Vendor: NVIDIA Corporation
    2020-02-19 13:33:47.203 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: Version: OpenGL ES 3.2 NVIDIA 361.00
    2020-02-19 13:33:47.203 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: GLES: 3
    2020-02-19 13:33:47.204 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: GL_EXT_debug_marker GL_EXT_base_instance GL_EXT_blend_func_extended GL_EXT_blend_minmax GL_EXT_buffer_storage GL_EXT_clip_cull_distance GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_EXT_copy_image GL_EXT_debug_label GL_EXT_discard_framebuffer GL_EXT_disjoint_timer_query GL_EXT_draw_buffers_indexed GL_EXT_draw_elements_base_vertex GL_EXT_float_blend GL_EXT_frag_depth GL_EXT_geometry_point_size GL_EXT_geometry_shader GL_EXT_gpu_shader5 GL_EXT_map_buffer_range GL_EXT_multi_draw_indirect GL_EXT_multisample_compatibility GL_EXT_occlusion_query_boolean GL_EXT_polygon_offset_clamp GL_EXT_primitive_bounding_box GL_EXT_protected_textures GL_EXT_render_snorm GL_EXT_robustness GL_EXT_separate_shader_objects GL_EXT_shader_implicit_conversions GL_EXT_shader_integer_mix GL_EXT_shader_io_blocks GL_EXT_shader_non_constant_global_initializers GL_EXT_shader_texture_lod GL_EXT_shadow_samplers GL_EXT_sparse_texture GL_EXT_sRGB GL_EXT_sRGB_write_control GL_EXT_tessellation_point_size GL_EXT_tessellation_shader GL_
    2020-02-19 13:33:47.204 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: EXT_texture_border_clamp GL_EXT_texture_buffer GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map_array GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_norm16 GL_EXT_texture_rg GL_EXT_texture_sRGB_decode GL_EXT_texture_storage GL_EXT_texture_view GL_EXT_unpack_subimage GL_EXT_window_rectangles GL_KHR_context_flush_control GL_KHR_debug GL_KHR_no_error GL_KHR_robust_buffer_access_behavior GL_KHR_robustness GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_sliced_3d GL_NV_bgr GL_NV_bindless_texture GL_NV_blend_equation_advanced GL_NV_blend_equation_advanced_coherent GL_NV_conditional_render GL_NV_copy_buffer GL_NV_copy_image GL_NV_draw_buffers GL_NV_draw_instanced GL_NV_draw_texture GL_NV_draw_vulkan_image GL_NV_EGL_stream_consumer_external GL_NV_explicit_attrib_location GL_NV_fbo_color_attachments GL_NV_framebuffer_blit GL_NV_framebuffer_multisample GL_NV_generate_mipmap_sRGB GL_NV_instanced_arrays GL_NV_internalformat_sampl
    2020-02-19 13:33:47.204 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: e_query GL_NV_gpu_shader5 GL_NV_image_formats GL_NV_occlusion_query_samples GL_NV_non_square_matrices GL_NV_pack_subimage GL_NV_packed_float GL_NV_packed_float_linear GL_NV_path_rendering GL_NV_pixel_buffer_object GL_NV_polygon_mode GL_NV_read_buffer GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil GL_NV_secure_context GL_NV_shader_noperspective_interpolation GL_NV_shadow_samplers_array GL_NV_shadow_samplers_cube GL_NV_sRGB_formats GL_NV_texture_array GL_NV_texture_barrier GL_NV_texture_border_clamp GL_NV_texture_compression_latc GL_NV_texture_compression_s3tc GL_NV_texture_compression_s3tc_update GL_NV_timer_query GL_NV_viewport_array GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24 GL_OES_depth32 GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_OES_copy_image GL_OES_draw_buffers_indexed GL_OES_draw_elements_base_vertex GL_OES_texture_border_clamp GL_OES_tessellation_point_size GL_OES_tessellation_shader GL_OES_texture
    2020-02-19 13:33:47.204 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: _buffer GL_OES_geometry_point_size GL_OES_geometry_shader GL_OES_gpu_shader5 GL_OES_shader_io_blocks GL_OES_texture_view GL_OES_primitive_bounding_box GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3 GL_OES_EGL_sync GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_get_program_binary GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_sample_shading GL_OES_sample_variables GL_OES_shader_image_atomic GL_OES_shader_multisample_interpolation GL_OES_standard_derivatives GL_OES_surfaceless_context GL_OES_texture_cube_map_array GL_OES_texture_npot GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_stencil8 GL_OES_texture_storage_multisample_2d_array GL_OES_vertex_array_object GL_OES_vertex_half_float GL_OES_viewport_array GL_ANDROID_extension_pack_es31a
    2020-02-19 13:33:47.211 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: OPENGL LOG: Creating OpenGL ES 2.0 graphics device ; Context level <OpenGL ES 2.0> ; Context handle -2110047168
    2020-02-19 13:33:47.224 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: [EGL] Attaching window :0x99ce8808
    2020-02-19 13:33:47.228 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: Requested framebuffer: resolution[1920x1200], rgba[5/6/5/0], depth+stencil[on], samples[1]
    2020-02-19 13:33:47.229 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: Created framebuffer: resolution[1920x1200], rgba[5/6/5/0], depth+stencil[24/8], samples[0]
    2020-02-19 13:33:47.231 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: [EGL] Attaching window :0x99ce8808
    2020-02-19 13:33:47.231 26008-26025/com.softwaregeezers.ionAXXIA D/Unity: Initialize engine version: 2019.1.12f1 (f04f5427219e)
    2020-02-19 13:33:47.256 26008-26025/com.softwaregeezers.ionAXXIA I/libOpenSLES: Emulating old channel mask behavior (ignoring positional mask 0x3, using default mask 0x3 based on channel count of 2)
    2020-02-19 13:33:47.256 26008-26025/com.softwaregeezers.ionAXXIA W/AudioTrack: notificationFrames=-16 clamped to the range -1 to -8
    2020-02-19 13:33:47.258 26008-26025/com.softwaregeezers.ionAXXIA D/AudioTrack: Client defaulted notificationFrames to 128 for frameCount 1024
     
  6. SoftwareGeezers

    SoftwareGeezers

    Joined:
    Jun 22, 2013
    Posts:
    902
    I changed the Project setting to 32 Display Buffer and that's worked. Would be nice to understand why and what's going on though. ;)