window drag laggin

Post Reply
ntc
Posts: 12
Joined: Thu May 01, 2014 5:28 pm
languages_spoken: english, polish
ODROIDs: 3x Odroid-U3
Has thanked: 0
Been thanked: 0
Contact:

window drag laggin

Unread post by ntc » Fri Jun 28, 2019 3:36 am

Hi,
I just got my C2 with Ubuntu Mate 18.04.2 LTS aarch64, Kernel: 3.16.68-41. Clean, then I did update & upgrade & reboot.

And it's slooooow, here's how slow it is:
https://youtu.be/i85aAKAVPlg

Not mentioning chrome + youtube videos ;)

CPU governor is set to performance with 1.54 GHz speed.

And my glmark results seems slow as well /with SceneTerrain error/:

Code: Select all

=======================================================
    glmark2 2014.03+git20150611.fa71af2d
=======================================================
    OpenGL Information
    GL_VENDOR:     ARM
    GL_RENDERER:   Mali-450 MP
    GL_VERSION:    OpenGL ES 2.0
=======================================================
[build] use-vbo=false: FPS: 107 FrameTime: 9.346 ms
[build] use-vbo=true: FPS: 153 FrameTime: 6.536 ms
[texture] texture-filter=nearest: FPS: 166 FrameTime: 6.024 ms
[texture] texture-filter=linear: FPS: 161 FrameTime: 6.211 ms
[texture] texture-filter=mipmap: FPS: 167 FrameTime: 5.988 ms
[shading] shading=gouraud: FPS: 137 FrameTime: 7.299 ms
[shading] shading=blinn-phong-inf: FPS: 142 FrameTime: 7.042 ms
[shading] shading=phong: FPS: 124 FrameTime: 8.065 ms
[shading] shading=cel: FPS: 123 FrameTime: 8.130 ms
[bump] bump-render=high-poly: FPS: 99 FrameTime: 10.101 ms
[bump] bump-render=normals: FPS: 163 FrameTime: 6.135 ms
[bump] bump-render=height: FPS: 161 FrameTime: 6.211 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 122 FrameTime: 8.197 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 84 FrameTime: 11.905 ms
[pulsar] light=false:quads=5:texture=false: FPS: 166 FrameTime: 6.024 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 69 FrameTime: 14.493 ms
[desktop] effect=shadow:windows=4: FPS: 135 FrameTime: 7.407 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 41 FrameTime: 24.390 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 62 FrameTime: 16.129 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 44 FrameTime: 22.727 ms
[ideas] speed=duration: FPS: 124 FrameTime: 8.065 ms
[jellyfish] <default>: FPS: 126 FrameTime: 7.937 ms
Error: SceneTerrain requires Vertex Texture Fetch support, but GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS is 0
[terrain] <default>: Unsupported
[shadow] <default>: FPS: 125 FrameTime: 8.000 ms
[refract] <default>: FPS: 39 FrameTime: 25.641 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 170 FrameTime: 5.882 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 137 FrameTime: 7.299 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 156 FrameTime: 6.410 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 156 FrameTime: 6.410 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 129 FrameTime: 7.752 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 151 FrameTime: 6.623 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 151 FrameTime: 6.623 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 147 FrameTime: 6.803 ms
=======================================================
                                  glmark2 Score: 126 
=======================================================
At least comparing to viewtopic.php?f=169&t=32918

Any suggestions what should I do to make it work in more civil way? :)
Thank you

User avatar
mad_ady
Posts: 6529
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 163 times
Been thanked: 125 times
Contact:

Re: window drag laggin

Unread post by mad_ady » Fri Jun 28, 2019 4:26 am

Disable compositor, check you are using fbturbo driver.

ntc
Posts: 12
Joined: Thu May 01, 2014 5:28 pm
languages_spoken: english, polish
ODROIDs: 3x Odroid-U3
Has thanked: 0
Been thanked: 0
Contact:

Re: window drag laggin

Unread post by ntc » Fri Jun 28, 2019 5:08 am

so I ran

Code: Select all

mate-tweak
to disable compositor.
But ruinig it I got:

Code: Select all

mate-tweak 
MESA-LOADER: failed to retrieve device information
libGL error: unable to load driver: mali_drm_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: mali_drm
Window Manager is: marco
Current layout: familiar
also

Code: Select all

glxinfo |grep -i opengl
MESA-LOADER: failed to retrieve device information
libGL error: unable to load driver: mali_drm_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: mali_drm
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: llvmpipe (LLVM 7.0, 128 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 18.2.8
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.1 Mesa 18.2.8
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 18.2.8
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:
also

Code: Select all

sudo apt install xserver-xorg-video-fbdev xserver-xorg-video-fbturbo
Reading package lists... Done
Building dependency tree       
Reading state information... Done
xserver-xorg-video-fbdev is already the newest version (1:0.4.4-1build6).
xserver-xorg-video-fbturbo is already the newest version (2:6.4.0+2018-06-13-hk1ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
what should I do?

User avatar
mad_ady
Posts: 6529
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 163 times
Been thanked: 125 times
Contact:

Re: window drag laggin

Unread post by mad_ady » Fri Jun 28, 2019 6:00 am

Not having opengl support is normal. You have gles.
Try reinstalling mali as well: sudo apt-get install --reinstall mali-x11

User avatar
odroid
Site Admin
Posts: 32121
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 119 times
Been thanked: 292 times
Contact:

Re: window drag laggin

Unread post by odroid » Fri Jun 28, 2019 9:26 am

Did you set "Marco (No compositor)" option in Mate-Tweak windows menu?

ntc
Posts: 12
Joined: Thu May 01, 2014 5:28 pm
languages_spoken: english, polish
ODROIDs: 3x Odroid-U3
Has thanked: 0
Been thanked: 0
Contact:

Re: window drag laggin

Unread post by ntc » Sat Jul 27, 2019 2:28 am

So I've set "Marco (No compositor)" as well as I've did

Code: Select all

sudo apt-get install --reinstall mali-x11
Next I rebooted.
But:

Code: Select all

glxinfo |grep -i opengl
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open mali_drm (search paths /usr/lib/aarch64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: mali_drm
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: llvmpipe (LLVM 8.0, 128 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 19.0.2
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.1 Mesa 19.0.2
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 19.0.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:

Window dragging is still painfully slow.
What should I try next?

User avatar
meveric
Posts: 10450
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 16 times
Been thanked: 127 times
Contact:

Re: window drag laggin

Unread post by meveric » Sat Jul 27, 2019 3:29 am

glxinfo won't work as it will check for MESA OpenGL support.
ODROIDs don't support OpenGL, they only support OpenGL ES.
Install mesa-utils-extra and run es2_info instead.

But just so you know Mali GPU has nothing to do with Window Management, this is done entirely by the CPU not the GPU.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
mad_ady
Posts: 6529
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 163 times
Been thanked: 125 times
Contact:

Re: window drag laggin

Unread post by mad_ady » Sat Jul 27, 2019 3:43 am

Opengl is normal to be handled by MESA. Try eglinfo instead.

Also, /dev/mali should have correct permissions:

Code: Select all

adrianp@bellatrix:~$ ls -l /dev/mali*
crwxrwxrwx 1 root root 10, 62 Jul 24 14:17 /dev/mali

User avatar
odroid
Site Admin
Posts: 32121
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 119 times
Been thanked: 292 times
Contact:

Re: window drag laggin

Unread post by odroid » Mon Jul 29, 2019 11:44 am

Check the below two settings. I had no such window drag lagging problem after confirm the following settings.
Mate Tweak: Window Manager: Marco (No compositor)
Window Preferences: Uncheck "Enable software compositing window manager".
mate_set.png
mate_set.png (292.53 KiB) Viewed 361 times

But the lagging problem appeared when I was moving a quite bigger window.
In that case, enable "Do not show window content when moving windows" option.

User avatar
odroid
Site Admin
Posts: 32121
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 119 times
Been thanked: 292 times
Contact:

Re: window drag laggin

Unread post by odroid » Mon Jul 29, 2019 12:03 pm

@mad_ady,
Is it enough for checking the fbturbo functionality by looking at /var/log/Xorg.0.log file?

Code: Select all

[    25.625] (II) LoadModule: "fbturbo"
[    25.625] (II) Loading /usr/lib/xorg/modules/drivers/fbturbo_drv.so
[    25.664] (II) Module fbturbo: vendor="X.Org Foundation"
[    25.664]    compiled for 1.19.6, module version = 0.5.1
[    25.664]    Module class: X.Org Video Driver
[    25.664]    ABI class: X.Org Video Driver, version 23.0
[    25.664] (II) FBTURBO: driver for framebuffer: fbturbo
[    25.685] (WW) Falling back to old probe method for fbturbo
[    25.685] (II) Loading sub module "fbdevhw"
[    25.685] (II) LoadModule: "fbdevhw"
[    25.686] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[    25.703] (II) Module fbdevhw: vendor="X.Org Foundation"
[    25.703]    compiled for 1.19.6, module version = 0.0.2
[    25.703]    ABI class: X.Org Video Driver, version 23.0
[    25.704] (II) FBTURBO(0): using /dev/fb0
[    25.704] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    25.704] (II) FBTURBO(0): Meson OSD alpha swap enabled
[    25.704] (II) FBTURBO(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[    25.704] (==) FBTURBO(0): Depth 24, (==) framebuffer bpp 32
[    25.704] (==) FBTURBO(0): RGB weight 888
[    25.704] (==) FBTURBO(0): Default visual is TrueColor
[    25.704] (==) FBTURBO(0): Using gamma correction (1.0, 1.0, 1.0)
[    25.704] (II) FBTURBO(0): hardware: OSD FB (video memory: 98304kB)
[    25.704] (DB) xf86MergeOutputClassOptions unsupported bus type 0
[    25.704] (**) FBTURBO(0): Option "fbdev" "/dev/fb0"
[    25.704] (**) FBTURBO(0): Option "alpha_swap" "true"
[    25.704] (**) FBTURBO(0): Option "SwapbuffersWait" "true"
[    25.704] (II) FBTURBO(0): processor: ARM Cortex-A53
[    25.704] (II) FBTURBO(0): checking modes against framebuffer device...
[    25.704] (II) FBTURBO(0): checking modes against monitor...
[    25.704] (--) FBTURBO(0): Virtual size is 1920x1080 (pitch 1920)
[    25.704] (**) FBTURBO(0):  Built-in mode "current": 148.5 MHz, 67.5 kHz, 60.0 Hz
[    25.704] (II) FBTURBO(0): Modeline "current"x0.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 -hsync -vsync -csync (67.5 kHz b)
[    25.704] (==) FBTURBO(0): DPI set to (96, 96)
[    25.705] (II) Loading sub module "fb"
[    25.705] (II) LoadModule: "fb"
[    25.705] (II) Loading /usr/lib/xorg/modules/libfb.so
[    25.728] (II) Module fb: vendor="X.Org Foundation"
[    25.728]    compiled for 1.19.6, module version = 1.0.0
[    25.729]    ABI class: X.Org ANSI C Emulation, version 0.4
[    25.729] (==) Depth 24 pixmap format is 32 bpp
[    25.757] (II) FBTURBO(0): using backing store heuristics
[    25.757] (II) FBTURBO(0): enabled VFP/NEON optimizations
[    25.757] (==) FBTURBO(0): Backing store enabled
[    25.763] (==) FBTURBO(0): DPMS enabled
[    25.776] (II) FBTURBO(0): can't load 'mali_drm' kernel module
[    25.776] (II) Loading sub module "dri2"
[    25.776] (II) LoadModule: "dri2"
[    25.776] (II) Module "dri2" already built-in
[    25.777] (II) FBTURBO(0): display controller hardware overlays are unsupported on meson8/gxbb.
[    25.777] (II) FBTURBO(0): Wait on SwapBuffers? enabled
[    25.777] (II) FBTURBO(0): [DRI2] Setup complete
[    25.777] (II) FBTURBO(0): [DRI2]   DRI driver: lima
[    25.777] (II) FBTURBO(0): using DRI2 integration for Mali GPU (UMP buffers)
[    25.777] (II) FBTURBO(0): Mali binary drivers can only accelerate EGL/GLES
[    25.777] (II) FBTURBO(0): so AIGLX/GLX is expected to fail or fallback to software
[    25.778] (==) RandR enabled
These users thanked the author odroid for the post:
mad_ady (Mon Jul 29, 2019 1:12 pm)

User avatar
meveric
Posts: 10450
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 16 times
Been thanked: 127 times
Contact:

Re: window drag laggin

Unread post by meveric » Mon Jul 29, 2019 5:41 pm

as fbturbo does not have many options anyway (means you can't misconfigure it), it's fine to check if it was started correctly in Xorg.0.log

Also noteworthy is probably that 4k resolution also slows down desktop performance :)
These users thanked the author meveric for the post:
odroid (Tue Jul 30, 2019 10:01 am)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
odroid
Site Admin
Posts: 32121
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 119 times
Been thanked: 292 times
Contact:

Re: window drag laggin

Unread post by odroid » Tue Jul 30, 2019 9:58 am

@meveric,

You advice is always helpful and reasonable. ;)

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 0 guests