Chromium Browser Hardware Acceleration

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Chromium Browser Hardware Acceleration

5,057 Views
sanjaydwivedi
Contributor I

Hi,

I am using chromium-40 enabled with hardware acceleration form chromium-imx provided by freescale. I am trying to play youtube video at different resolutions and I found that videos at resolution >=480p is not playing smoothly. Also CPU load is getting very high while playing youtube video i.e. 75% to 90%.

What I am suspecting is :

1. Browser is not using Hardware Acceleration as HTML5 is enabled so it may be using software acceleration.

     How can we verify that GPU and VPU is getting used while running browser? Is there any application to check GPU and VPU usage?

2. If Browser is using Hardware Acceleration then why CPU load is this much high? Do we need to have some additional configurations for settling CPU load while running Browser?

3. Is there any other browser like midori, firefox etc which supports hardware acceleration, provided by freescale yocto?

Note : I am using poky-dizzy branch for building root file system.

https://github.com/OSSystems/meta-browser

https://github.com/Freescale/chromium-imx

Thanks and Regards

Sanjay k Dwivedi

0 Kudos
Reply
2 Replies

2,161 Views
igorpadykov
NXP Employee
NXP Employee

Hi sanjay

in general, if fps more than 25-30, then one can consider this as

hw accelerated. Still cpu load may be about 25%, below some helpful links

About Video performance on HTML by using WebView on AndroidKK4.4.2

Qt5 Cinematic Experience Demo on i.MX6

I am afraid there is no easy method or tools to know if hw acceleration is used or not.

Most simple to perform cpu load measurement:

to measure CPU load during the tests, run "top" and inspect the "%id" value of the third line:

Cpu(s): 98.4%us,  1.6%sy,  0.0%ni,  0.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st

By deducting the "%id" (idle) value from 100%, you get the full CPU load.

Regardng perfomance data, this greatly depends on board configuration,

suggest to ask on meta-fsl-arm mailing list, afaik, ossystems has much experience

on chromium porting 

https://lists.yoctoproject.org/listinfo/meta-freescale

Porting Chrome on i.mx6 with hw accelaration?

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

2,161 Views
sanjaydwivedi
Contributor I

Hi Igor,

Thanks for your reply.

I went through links provided by you, but still I am not able to rectify the issue.

In log messages, it is very clear that chromium browser is using vpu but at the same end I am getting log like :

Share groups are not working on (older?) Vivante drivers : 179250, 229643, 230896

Applied Workarounds: clear_uniforms_before_first_program_use

This shows clearly that rendering of image on screen is not via Hardware (GPU) but with software.

I am not sure what is the issue behind this?

Is this the issue regarding GPU Vivante Driver or WebGL or OpenGL ES 2?

What needs to be checked in configuration for performance? I am using freescale meta-fsl-arm, meta-fsl-demos, meta-fsl-arm-extras.  

Thanks and Regards

Sanjay K Dwivedi

0 Kudos
Reply