Solved QQuickView renders slowly in QWidget
-
Hi SGaist,
Yes I already tried with the QQuickWidget, and there was the same problem of slowness...
-
Can you test with a more recent version of Qt ?
-
Hi SGaist,
Same problem of slowness with the latest version QT 5.9.2. Otherwise I tested the software on a Debian Jessie and a QT 5.3, and there no problem.
So, the problem seems to come from Centos 7.3 maybe ?
-
If you can compare the application built with the same version of Qt it would be even better.
Beside the Linux distribution, what other differences do you have between the machines (I'm thinking graphics card/driver combo).
-
Hello,
To better compare I installed a new Centos 7.3 VM on my laptop, the problem is the same with Qt 5.9.2.
But, I tested in Qt 4.8, and there no problem on my two Centos 7.3 machines.
- On my Centos 7.3 VM, the configuration is as follows:
#$ lspci | grep VGA 00: 02.0 VGA controller compatible: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter
No graphic card on this machine.
#$ glxinfo | grep -i vendor server glx vendor string: SGI glx vendor string client: Mesa Project and SGI OpenGL vendor string: VMware, Inc.
- On my other Centos 7.3 machine, the configuration is as follows:
#$ lspci | grep VGA 06: 00.0 VGA compatible controller: Matrox Electronics Systems Ltd. G200eR2
No graphic card on this machine.
#$ glxinfo | grep -i vendor server glx vendor string: SGI glx vendor string client: Mesa Project and SGI OpenGL vendor string: VMware, Inc.
- For my Debian Jessie, I have a graphic card Nvidia 9600M GT with proprietary drivers.
Thanks,
Yoann
-
The problem with your comparison is that you are using different major versions of Qt, some running in virtual environments and other on physical machines.
-
Hello SGaist,
Sorry but my last message was not clear enough. I understand your remark on my comparison but how to explain that I find the same slowness on:
- Physical machine Centos 7.3 - Qt5.9.2
- Virtual Machine Centos 7.3 - Qt 5.9.2
After I looked for a major version of Qt without slowness and I came across the 4.8 that works between my physical and virtual machines on Centos 7.3.
-
There's been lots of changes between Qt 4 and Qt 5.
Which driver are you using ?
-
Hey,
As requested, my used drivers :
- For Virtual Machine Centos 7.3 :
grep drivers -A8 /var/log/Xorg.0.log [ 36.623] (II) Loading /usr/lib64/xorg/modules/drivers/vboxvideo_drv.so [ 36.659] (II) Module vboxvideo: vendor="Oracle Corporation" [ 36.659] compiled for 1.17.0, module version = 1.0.1 [ 36.659] Module class: X.Org Video Driver [ 36.659] ABI class: X.Org Video Driver, version 19.0 [ 36.659] (**) Load address of symbol "VBOXVIDEO" is 0x7f56ae73c2e0 -- [ 36.659] (II) LoadModule: "modesetting" [ 36.659] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so [ 36.712] (II) Module modesetting: vendor="X.Org Foundation" [ 36.712] compiled for 1.17.2, module version = 1.17.2 [ 36.712] Module class: X.Org Video Driver [ 36.712] ABI class: X.Org Video Driver, version 19.0 -- [ 36.712] (II) LoadModule: "fbdev" [ 36.712] (II) Loading /usr/lib64/xorg/modules/drivers/fbdev_drv.so [ 36.793] (II) Module fbdev: vendor="X.Org Foundation" [ 36.793] compiled for 1.17.2, module version = 0.4.3 [ 36.793] Module class: X.Org Video Driver [ 36.793] ABI class: X.Org Video Driver, version 19.0 -- [ 36.793] (II) LoadModule: "vesa" [ 36.793] (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so [ 36.809] (II) Module vesa: vendor="X.Org Foundation" [ 36.809] compiled for 1.17.2, module version = 2.3.2 [ 36.809] Module class: X.Org Video Driver [ 36.809] ABI class: X.Org Video Driver, version 19.0 [ 36.809] (II) VBoxVideo: guest driver for VirtualBox: vbox [ 36.809] (II) modesetting: Driver for Modesetting Kernel Drivers: kms [ 36.809] (II) FBDEV: driver for framebuffer: fbdev [ 36.810] (II) VESA: driver for VESA chipsets: vesa
- For physical machine Centos 7.3 :
grep drivers -A8 /var/log/Xorg.0.log [4233333.225] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so [4233333.225] (II) Module modesetting: vendor="X.Org Foundation" [4233333.225] compiled for 1.17.2, module version = 1.17.2 [4233333.225] Module class: X.Org Video Driver [4233333.225] ABI class: X.Org Video Driver, version 19.0 -- [4233333.225] (II) LoadModule: "fbdev" [4233333.225] (II) Loading /usr/lib64/xorg/modules/drivers/fbdev_drv.so [4233333.225] (II) Module fbdev: vendor="X.Org Foundation" [4233333.225] compiled for 1.17.2, module version = 0.4.3 [4233333.225] Module class: X.Org Video Driver [4233333.225] ABI class: X.Org Video Driver, version 19.0 -- [4233333.225] (II) LoadModule: "vesa" [4233333.225] (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so [4233333.226] (II) Module vesa: vendor="X.Org Foundation" [4233333.226] compiled for 1.17.2, module version = 2.3.2 [4233333.226] Module class: X.Org Video Driver [4233333.226] ABI class: X.Org Video Driver, version 19.0 [4233333.226] (II) modesetting: Driver for Modesetting Kernel Drivers: kms [4233333.226] (II) FBDEV: driver for framebuffer: fbdev [4233333.226] (II) VESA: driver for VESA chipsets: vesa
Thanks,
Yoann
-
How old is that graphics card ? From the looks of it, you are using the software pipeline rather than the hardware accelerated hence your performance issue.
-
Hey,
There is no graphic card on this machines :
- Virtual Machine Centos 7.3
VGA compatible controller [0300]: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter [80ee:beef] (prog-if 00 [VGA controller]) Flags: bus master, fast devsel, latency 0, IRQ 11 Memory at e0000000 (32-bit, prefetchable) [size=16M] Expansion ROM at <unassigned> [disabled]
- Physical machine Centos 7.3
VGA compatible controller [0300]: Matrox Electronics Systems Ltd. G200eR2 [102b:0534] (prog-if 00 [VGA controller]) Subsystem: Dell Device [1028:04f8] Flags: bus master, medium devsel, latency 64, IRQ 19, NUMA node 0 Memory at d8000000 (32-bit, prefetchable) [size=16M] Memory at de7fc000 (32-bit, non-prefetchable) [size=16K] Memory at dd800000 (32-bit, non-prefetchable) [size=8M] Expansion ROM at <unassigned> [disabled] Capabilities: [dc] Power Management version 1 Kernel driver in use: mgag200 Kernel modules: mgag200
thanks,
-
It might be an onboard chip but you have one:
Matrox Electronics Systems Ltd. G200eR2
which doesn't seem to be very recent, is it ?What does
glxinfo
tell you ? -
Yes, it's an onboard graphic chipset for Dell PowerEdge R420. It's not very recent, this chipset was designed in 2001-2002 according Matrox constructor website.
Information from
glxinfo
on pastebin : https://pastebin.com/0H7UG4LDThanks,
-
What FPS do you get from glxgears ?
By the way, desktop environment are you actually running ? -
Ouput from
glxgears
:GL_RENDERER = Gallium 0.4 on llvmpipe (LLVM 3.8, 256 bits) GL_VERSION = 2.1 Mesa 11.2.2 GL_VENDOR = VMware, Inc. GL_EXTENSIONS = GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_polygon_offset GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB GL_ARB_multitexture GL_EXT_framebuffer_sRGB GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_lod_bias GL_INGR_blend_func_separate GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_EXT_framebuffer_object GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_MESA_window_pos GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_ARB_depth_texture GL_ARB_occlusion_query GL_ARB_shadow GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_window_pos GL_EXT_stencil_two_side GL_EXT_texture_cube_map GL_NV_depth_clamp GL_NV_fog_distance GL_APPLE_packed_pixels GL_APPLE_vertex_array_object GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_vertex_program GL_ARB_vertex_shader GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert GL_MESA_ycbcr_texture GL_NV_primitive_restart GL_ARB_depth_clamp GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_occlusion_query2 GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate GL_OES_read_format GL_ARB_color_buffer_float GL_ARB_pixel_buffer_object GL_ARB_texture_compression_rgtc GL_ARB_texture_rectangle GL_ATI_texture_compression_3dc GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_texture_compression_rgtc GL_EXT_texture_mirror_clamp GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_ARB_framebuffer_object GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_packed_depth_stencil GL_ARB_vertex_array_object GL_ATI_separate_stencil GL_ATI_texture_mirror_once GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_gpu_program_parameters GL_EXT_texture_array GL_EXT_texture_compression_latc GL_EXT_texture_integer GL_EXT_texture_sRGB_decode GL_EXT_timer_query GL_OES_EGL_image GL_ARB_copy_buffer GL_ARB_depth_buffer_float GL_ARB_draw_instanced GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_map_buffer_range GL_ARB_texture_rg GL_ARB_texture_swizzle GL_ARB_vertex_array_bgra GL_EXT_texture_swizzle GL_EXT_vertex_array_bgra GL_NV_conditional_render GL_AMD_conservative_depth GL_AMD_draw_buffers_blend GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_stencil_export GL_ARB_ES2_compatibility GL_ARB_blend_func_extended GL_ARB_debug_output GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_shader_stencil_export GL_ARB_shader_texture_lod GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_multisample GL_ARB_texture_rgb10_a2ui GL_ARB_uniform_buffer_object GL_ARB_vertex_type_2_10_10_10_rev GL_EXT_provoking_vertex GL_EXT_texture_snorm GL_MESA_texture_signed_rgba GL_ARB_get_program_binary GL_ARB_robustness GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_base_instance GL_ARB_compressed_texture_pixel_storage GL_ARB_conservative_depth GL_ARB_internalformat_query GL_ARB_map_buffer_alignment GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_texture_storage GL_ARB_transform_feedback_instanced GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_transform_feedback GL_AMD_shader_trinary_minmax GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_clear_buffer_object GL_ARB_explicit_uniform_location GL_ARB_invalidate_subdata GL_ARB_program_interface_query GL_ARB_stencil_texturing GL_ARB_texture_query_levels GL_ARB_texture_storage_multisample GL_ARB_texture_view GL_ARB_vertex_attrib_binding GL_KHR_debug GL_ARB_buffer_storage GL_ARB_multi_bind GL_ARB_seamless_cubemap_per_texture GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_stencil8 GL_ARB_vertex_type_10f_11f_11f_rev GL_EXT_shader_integer_mix GL_ARB_clip_control GL_ARB_conditional_render_inverted GL_ARB_get_texture_sub_image GL_EXT_polygon_offset_clamp GL_KHR_context_flush_control VisualID 444, 0x1bc 6988 frames in 5.0 seconds = 1397.474 FPS 7336 frames in 5.0 seconds = 1466.948 FPS 7366 frames in 5.0 seconds = 1473.026 FPS
I'm using the native Centos desktop environnement : gnome 3.14.0
-
I have found a good performance improvement with Qt Quick 2D Renderer.
But finally, the best solution is to remove QML and use only QPainter.
Regards.