Simliar topic has been discussed on the community. As an example:
- This one started for iMX8M-Mini, but then switched to the plus
- [ Enabling GPU Acceleration Mode using Chromium Version 112.X.X.X](Enabling GPU Acceleration Mode using Chromium Version 112.X.X.X)
In the KB, I can read
The last known version that works with GPU acceleration in i.MX modules is Chromium v101. Any newer versions do not support GPU hardware acceleration.
And for this reason, even the latest torizon/chromium:3.0.1 contains v101.
But in OSSystems/meta-browser I cannot find this limitation.
This issue reports some problems with v110+, and it links about://gpu
of last working version, which is v109
Graphics Feature Status
Canvas: Hardware accelerated
Canvas out-of-process rasterization: Disabled
Direct Rendering Display Compositor: Disabled
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
OpenGL: Enabled
Rasterization: Hardware accelerated
Raw Draw: Disabled
Video Decode: Hardware accelerated
Video Encode: Software only. Hardware acceleration disabled
Vulkan: Disabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated
...
Are you sure that Chromium versions above v101 doesn’t support GPU HW acceleration?
I found this blog post online, that details the steps used to enable HW acceleration for iMX8M-Mini.
It uses an older release of Chromium (v96), but I see come differences from Toradex approach:
As an example
volumes:
- /run/user/63:/run/user/63
- /dev/dri:/dev/dri
- /dev/galcore:/dev/galcore
device_cgroup_rules:
- 'c 199:* rmw'
- 'c 226:* rmw'
in docker-compose.yml
And starting chromium with the following flags
echo "Starting Chromium: $@"
/usr/lib/chromium/chrome \
--use-gl=egl \
--ozone-platform=wayland \
--no-sandbox \
--disable-features=VizDisplayCompositor \
--in-process-gpu \
--start-maximized \
--disk-cache-size=33554432 \
"$@"
I see from the last screenshot in the blog post, that benchmark of https://webglsamples.org/fishtank/fishtank.html with 10 fishes and sharks is 22 fps.
I tried the same benchmark with Torizon OS + Chromium on iMX8M-Plus, but I have 14 fps.
Do you see any space for improvements on Torizon OS?