sailfishos-flatpak / main

Documentation and issues
MIT License
25 stars 4 forks source link

Qt animations can slow down apps #10

Open rinigus opened 4 years ago

rinigus commented 4 years ago

In Flatpak apps, when running QT animation, such as spinning busy indicator, I am getting general slow down of the applications. Slowdown can be felt by trying to pull drawers, slower web pages download, and other similar effects. This can be remedied by setting QSG_RENDER_LOOP=basic .

When I asked for help at KDE, originally just suspecting something odd in BusyIndicator, I was pointed to possibly wrong vsync. According to QSG_INFO=1, its set to 16.67 ms - 60Hz, as expected for embedded device. Corresponding data dump is below.

I haven't noticed any difference between QSG_INFO as reported by SFOS app or app running from Flatpak. Same slowdown is for Qt 5.12 and 5.14. Any ideas on how to fix it instead of using QSG_RENDER_LOOP=basic?

[D] unknown:0 - threaded render loop
[D] unknown:0 - Using sg animation driver
[D] unknown:0 - Animation Driver: using vsync: 16.67 ms
[D] unknown:0 - opengl texture atlas dimensions: 2048x4096
[D] unknown:0 - R/G/B/A Buffers:   5 6 5 0
[D] unknown:0 - Depth Buffer:      24
[D] unknown:0 - Stencil Buffer:    8
[D] unknown:0 - Samples:           0
[D] unknown:0 - GL_VENDOR:         Qualcomm
[D] unknown:0 - GL_RENDERER:       Adreno (TM) 630
[D] unknown:0 - GL_VERSION:        OpenGL ES 2.0 (OpenGL ES 3.2 V@324.0 (GIT@f4471f2, I3387004788)
[D] unknown:0 - GL_EXTENSIONS:     GL_AMD_compressed_ATC_texture GL_ANDROID_extension_pack_es31a GL_ARM_shader_framebuffer_fetch_depth_stencil GL_EXT_EGL_image_array GL_EXT_EGL_image_storage GL_EXT_YUV_target GL_EXT_blend_func_extended GL_EXT_blit_framebuffer_params GL_EXT_buffer_storage GL_EXT_clip_control 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_debug_marker GL_EXT_discard_framebuffer GL_EXT_disjoint_timer_query GL_EXT_draw_buffers_indexed GL_EXT_external_buffer GL_EXT_geometry_shader GL_EXT_gpu_shader5 GL_EXT_memory_object GL_EXT_memory_object_fd GL_EXT_multisampled_render_to_texture GL_EXT_multisampled_render_to_texture2 GL_EXT_primitive_bounding_box GL_EXT_protected_textures GL_EXT_robustness GL_EXT_sRGB GL_EXT_sRGB_write_control GL_EXT_shader_framebuffer_fetch GL_EXT_shader_io_blocks GL_EXT_shader_non_constant_global_initializers GL_EXT_tessellation_shader GL_EXT_texture_border_clamp GL_EXT_texture_buffer GL_EXT_texture_cube_map_array GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_format_sRGB_override GL_EXT_texture_norm16 GL_EXT_texture_sRGB_R8 GL_EXT_texture_sRGB_decode GL_EXT_texture_type_2_10_10_10_REV GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_KHR_debug GL_KHR_no_error GL_KHR_robust_buffer_access_behavior GL_KHR_texture_compression_astc_hdr GL_KHR_texture_compression_astc_ldr GL_NV_shader_noperspective_interpolation GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3 GL_OES_EGL_sync GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24 GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_OES_element_index_uint GL_OES_framebuffer_object GL_OES_get_program_binary 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_3D GL_OES_texture_compression_astc GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_texture_stencil8 GL_OES_texture_storage_multisample_2d_array GL_OES_vertex_array_object GL_OES_vertex_half_float GL_OVR_multiview GL_OVR_multiview2 GL_OVR_multiview_multisampled_render_to_texture GL_QCOM_alpha_test GL_QCOM_shader_framebuffer_fetch_noncoherent GL_QCOM_texture_foveated GL_QCOM_tiled_rendering
[D] unknown:0 - Max Texture Size: 16384