Closed raphaelventura closed 6 months ago
The easiest way to see if the card is being used for decoding is to use nvidia-settings
, in the 'GPU 0' section there is a 'Video Engine Utilization:' line which should be > 0% when in use.
You can also use nvidia-smi pmon
, which will show you how much decoding each process is using.
Thanks. I can indeed see some positive values for 'Video Engine Utilization' whenever logs print nice things.
I think my non-consistent experience corresponds to hardware acceleration not systematically working though. I'll make some more tests, but it also happens that, upon re-opening firefox after a successful decoding session, the new session doesn't handle it, and I get EGL-related errors.
Could you provide some insight about the value I should set this variable to ?
Also, I did not set
gfx.x11-egl.force-enabled
to true, since I use thedirect
backend (and I think that in turn, firefox should not use egl, am I right to think so?).
I checked that vainfo
prints the supported profiles, and that my PC did not went to sleep in order to prevent the "post-sleep" bug mentioned in multiple issues.
Firefox always uses EGL, it's how it imports the images this driver exports. The direct/egl backend switch changes how this driver exports those images, either via the proper 'supported' EGL method, or by calling the NVIDIA kernel driver directly (which is very unsupported). However we can't use the EGL method at the moment as it's been broken for over a year.
Thanks for the clarification. I set the flag back to true.
I see that firefox sometimes issues error message about using hardware webrender at startup, which would explain the inconsistencies. I will close this issue and open another one concerning this bug.
Hi,
Thanks for your work on the driver.
I set up the environment + kernel module options as stated and I think I managed to make it work on my machine: the logs look good, some compute info in
nvtop
/nvidia-smi
. But unfortunately, I don't see much difference when playing high-resolution videos on youtube. I often get screen tearing, parts of the image going from "low-res" to "hi-res", and motion is not very smooth.Here's my setup : Manjaro 23.1.2 Graphics card : Quadro K620 driver:
linux61-nvidia 545.29.06-9
Also, I did not set
gfx.x11-egl.force-enabled
to true, since I use thedirect
backend (and I think that in turn, firefox should not use egl, am I right to think so?).Excerpts from logs copied from stdout:
Note that my card only supports H264, and that I use firefox's h264ify extension.
Is there a way I could quantitatively assert that this indeed works ? I get the impression that reproducibility given some conditions (va-api used vs not used, playing the same video) in terms of "visual feeling" is not good.
Thanks