Low fps when running webGL content

Post Reply
Tzach29
Posts: 6
Joined: Mon Jul 15, 2019 7:27 pm
languages_spoken: english
ODROIDs: Odroid-XU4
Has thanked: 0
Been thanked: 0
Contact:

Low fps when running webGL content

Post by Tzach29 »

Hello,

I've recently purchased an Odroid - XU4 (https://www.hardkernel.com/shop/odroid- ... ial-price/) And i was trying to run some webGL games to check if the product is as advertised in the videos (i.e https://www.youtube.com/watch?v=SkMSs7fADoU ). however when loading a webGL game the fps is EXTREMELY lower then advertised.
In addition, I couldn't verify a more updated version of my graphic card driver. could this be the issue? if so, can anyone provide help on this matter?

Spec information:

OS:
Ubuntu 18.04.2 LTS (bionic beaver) 32 bit
Kernerl Linux 4.14.127-164 armv7l
MATE 1.20.1

Hardware:
Memory: 1.9GiB
Processor: ARMv7 Processor rev 3(v7l)*8
Graphic Card: llvmpipe(LLVM 8.0, 128 bits)

Web Browser:
Chromium 75.0.3770.90

User avatar
meveric
Posts: 11658
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, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 73 times
Been thanked: 541 times
Contact:

Re: Low fps when running webGL content

Post by meveric »

try opening chrome://gpu in the browser and scroll down to:
GL_VENDOR and GL_RENDERER if it says "MESA" that means it's running in Software CPU rendering.
If it says Mali-T628 it's using hardware GPU acceleration.
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.

Tzach29
Posts: 6
Joined: Mon Jul 15, 2019 7:27 pm
languages_spoken: english
ODROIDs: Odroid-XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Low fps when running webGL content

Post by Tzach29 »

meveric wrote:
Mon Jul 15, 2019 7:54 pm
try opening chrome://gpu in the browser and scroll down to:
GL_VENDOR and GL_RENDERER if it says "MESA" that means it's running in Software CPU rendering.
If it says Mali-T628 it's using hardware GPU acceleration.
GL_VENDOR says "Google Inc."
GL_RENDERER says "Google SwiftShader"

User avatar
meveric
Posts: 11658
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, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 73 times
Been thanked: 541 times
Contact:

Re: Low fps when running webGL content

Post by meveric »

Hmm not sure if that's correct.

Can you see any other entries about MESA or anything?

It's likely that it's using the wrong drivers.
Either libGLESv2.so or libEGL.so in either the Chromium folder or under /usr/lib/arm-linux-gnueabihf are not linked correctly.
That's the most common problems.
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.

Tzach29
Posts: 6
Joined: Mon Jul 15, 2019 7:27 pm
languages_spoken: english
ODROIDs: Odroid-XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Low fps when running webGL content

Post by Tzach29 »

No other entries for MESA or anything.
not sure what you mean by "not linked correctly"

User avatar
odroid
Site Admin
Posts: 38341
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2124 times
Been thanked: 1264 times
Contact:

Re: Low fps when running webGL content

Post by odroid »

Try to run "es2gears" on the command line first.
If you can't see "ARM" nor "MALI" stuff, you have to reinstall the Mali GPU driver again.
sudo apt-get install --reinstall mali-x11

User avatar
meveric
Posts: 11658
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, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 73 times
Been thanked: 541 times
Contact:

Re: Low fps when running webGL content

Post by meveric »

The reference to google might be that in the chromium folder the libGLESv2 and libEGL are actually from Chromium itself and not from Mali.
Therefore hardware acceleration wouldn't work either.
Can you post the output from:

Code: Select all

ls -la /usr/lib/chromium/
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.

Tzach29
Posts: 6
Joined: Mon Jul 15, 2019 7:27 pm
languages_spoken: english
ODROIDs: Odroid-XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Low fps when running webGL content

Post by Tzach29 »

odroid wrote:
Tue Jul 16, 2019 8:51 am
Try to run "es2gears" on the command line first.
If you can't see "ARM" nor "MALI" stuff, you have to reinstall the Mali GPU driver again.
sudo apt-get install --reinstall mali-x11
The gear thing works, the mali reinstall however didn't help in this situation
meveric wrote:
Tue Jul 16, 2019 4:49 pm
The reference to google might be that in the chromium folder the libGLESv2 and libEGL are actually from Chromium itself and not from Mali.
Therefore hardware acceleration wouldn't work either.
Can you post the output from:

Code: Select all

ls -la /usr/lib/chromium/

Code: Select all

root@odroid:/home/odroid# ls -la /usr/lib/chromium-browser
total 142736
drwxr-xr-x   6 root root      4096 Jul 16 08:26 .
drwxr-xr-x 126 root root      4096 Jul 15 15:32 ..
drwxr-xr-x   2 root root      4096 Jul 15 16:17 MEIPreload
-rw-r--r--   1 root root     20969 Jun 13 20:21 browser_tests_apprtc.runtime_deps
-rwxr-xr-x   1 root root    169500 Jun 13 20:21 bytecode_builtins_list_generator
-r-sr-xr-x   1 root root    149020 Jun 13 20:21 chrome-sandbox
-rw-r--r--   1 root root    977345 Jun 13 20:21 chrome_100_percent.pak
-rw-r--r--   1 root root   1259373 Jun 13 20:21 chrome_200_percent.pak
-rwxr-xr-x   1 root root 103766056 Jun 13 20:21 chromium-browser
-rw-r--r--   1 root root   8773787 Jun 13 20:21 headless_lib.pak
-rw-r--r--   1 root root  10410272 Jun 13 07:14 icudtl.dat
lrwxrwxrwx   1 root root        48 Jul 16 08:26 libEGL.so -> /usr/lib/arm-linux-gnueabihf/mali-egl/libmali.so
lrwxrwxrwx   1 root root        48 Jul 16 08:18 libEGL.so.org -> /usr/lib/arm-linux-gnueabihf/mali-egl/libmali.so
lrwxrwxrwx   1 root root        48 Jul 16 08:26 libGLESv2.so -> /usr/lib/arm-linux-gnueabihf/mali-egl/libmali.so
lrwxrwxrwx   1 root root        48 Jul 16 08:18 libGLESv2.so.org -> /usr/lib/arm-linux-gnueabihf/mali-egl/libmali.so
-rw-r--r--   1 root root    206280 Jun 13 20:21 libVkICD_mock_icd.so
-rw-r--r--   1 root root   1986260 Jun 13 20:21 libffmpeg.so
lrwxrwxrwx   1 root root         1 Jun 13 20:21 libs -> .
drwxr-xr-x   2 root root      4096 Jul 15 16:17 locales
-rwxr-xr-x   1 root root    910524 Jun 13 20:21 make_top_domain_list_for_edit_distance
-rw-r--r--   1 root root       425 Aug 22  2017 master_preferences
-rw-r--r--   1 root root     83237 Jun 13 20:21 natives_blob.bin
drwxr-xr-x   2 root root      4096 Jun 13 20:21 plugins
-rwxr-xr-x   1 root root    682120 Jun 13 20:21 protoc_plugin
-rw-r--r--   1 root root  13850433 Jun 13 20:21 resources.pak
-rw-r--r--   1 root root    285288 Jun 13 20:21 snapshot_blob.bin
drwxr-xr-x   2 root root      4096 Jul 15 16:17 swiftshader
-rwxr-xr-x   1 root root    324736 Jun 13 20:21 top_domain_generator
-rwxr-xr-x   1 root root    804428 Jun 13 20:21 torque/sources/TOOLS/backports/QT5/qtbase-opensource-src-5.7.1+dfsg/bin/qmake:
-rwxr-xr-x   1 root root    640128 Jun 13 20:21 transport_security_state_generator
-rw-r--r--   1 root root    611636 Jun 13 20:21 v8_context_snapshot.bin
-rw-r--r--   1 root root     96892 Jun 13 20:21 views_mus_resources.pak
-rwxr-xr-x   1 root root     37394 Jun 13 07:14 xdg-mime
-rwxr-xr-x   1 root root     33273 Jun 13 07:14 xdg-settings

User avatar
odroid
Site Admin
Posts: 38341
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2124 times
Been thanked: 1264 times
Contact:

Re: Low fps when running webGL content

Post by odroid »

I've run a WebGL test with the Chromium in full screen mode on our Ubuntu Mate image and fps was around 27~33 FPS with a 1080p display.
chromium_webgl.png
chromium_webgl.png (3.52 MiB) Viewed 1610 times
My Chromium version is also 75.0.3770.90.
Let's try to find what's wrong in your system.

Did you see "1.4 Midgard-"r17p0-01rel0" when you ran "es2gears"?

Tzach29
Posts: 6
Joined: Mon Jul 15, 2019 7:27 pm
languages_spoken: english
ODROIDs: Odroid-XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Low fps when running webGL content

Post by Tzach29 »

odroid wrote:
Tue Jul 16, 2019 5:48 pm
I've run a WebGL test with the Chromium in full screen mode on our Ubuntu Mate image and fps was around 27~33 FPS with a 1080p display.
chromium_webgl.png

My Chromium version is also 75.0.3770.90.
Let's try to find what's wrong in your system.

Did you see "1.4 Midgard-"r17p0-01rel0" when you ran "es2gears"?
Edit: Yes I did, what does it mean?

User avatar
mad_ady
Posts: 9962
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 631 times
Been thanked: 777 times
Contact:

Re: Low fps when running webGL content

Post by mad_ady »

It means you're running the correct GPU driver.

User avatar
odroid
Site Admin
Posts: 38341
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2124 times
Been thanked: 1264 times
Contact:

Re: Low fps when running webGL content

Post by odroid »

What is the framerate when you run this Aquarium demo?
https://webglsamples.org/aquarium/aquarium.html

This morning, I've just tested this WebGL example (3D Car rendering show) as our advertising youtube video.
http://carvisualizer.plus360degrees.com/threejs/
It works nicely on my XU4 as expected.

Did you change the Window Manager option to Marco (No Composite)?
It could be found in Menu -> Preference -> MATE Tweak -> Windows(tab).

Tzach29
Posts: 6
Joined: Mon Jul 15, 2019 7:27 pm
languages_spoken: english
ODROIDs: Odroid-XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Low fps when running webGL content

Post by Tzach29 »

odroid wrote:
Wed Jul 17, 2019 9:49 am
What is the framerate when you run this Aquarium demo?
https://webglsamples.org/aquarium/aquarium.html

This morning, I've just tested this WebGL example (3D Car rendering show) as our advertising youtube video.
http://carvisualizer.plus360degrees.com/threejs/
It works nicely on my XU4 as expected.

Did you change the Window Manager option to Marco (No Composite)?
It could be found in Menu -> Preference -> MATE Tweak -> Windows(tab).
sorry for the late replay, the aquarium runs around 20-30fps with 500 fish

User avatar
odroid
Site Admin
Posts: 38341
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2124 times
Been thanked: 1264 times
Contact:

Re: Low fps when running webGL content

Post by odroid »

It looks normal.
If you change the CPU governor to "performance", you will have 3~4FPS more probably.
https://wiki.odroid.com/odroid-xu4/appl ... q_govornor

Also check the Menu -> Preference -> Windows "Compositing Manager" option.
"Enable software compositing window manager" must be unchecked.

Did you try 3D Car rendering example too? was it really slow?
I've just compared with our Youtube video and there was no significant difference.

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 10 guests