-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Now Flash videos are a pain very very slow #327
Comments
What does "now" mean? It was better before and became worse recently? If so, what changed between good and bad states? Was freshplayerplugin version changed? Currently there is known problem in the code: it enabled and disables GL context on every GL call. On integrated adapters that usually is fine. But on discrete adapters, like nVidia cards, it could cause a significant synchronization overhead. |
That's not a discrete card. Just have an nvidia GeForce 970 in primary PCIE port in my tower. 2 weeks ago there is an update of freshplayer and now the videos are slow, like software rendering... Tried all with vdpau and vaapi same problem. But in youtube the HW accel and decode says it's on. |
Better log:
|
It's a discrete video adapter. That term doesn't mean it's something external to the computer, it means a device with own memory. There are also so-called integrated video adapters, which share memory with a CPU.
From what to what? Did you try version from repository's master branch?
Only video decoding is slow? Does it help to disable it by setting |
Ok understood, I have a discrete card
Don't remember sorry, I get the source/package here in AUR channel: https://aur.archlinux.org/packages/freshplayerplugin/ (tried with freshplayerplugin-fit too)
Tried, horrible too, it helps nothing |
I precise vdpau is correctly enabled
|
@Elrondo46 try: grep freshplayerplugin /var/log/pacman.log to see from what to what |
Same issue in openSUSE Tumbleweed with nvidia gpu. It worked, but I don't know which upgrade did it. Maybe Firefox 46? |
I didn't have a chance to test it on machine with nVidia GPU yet. |
@i-rinat let me know if I can somehow help |
@hlavki, I've just noticed you're using openSUSE Tumbleweed. Are you using precompiled package from repository? As far as I can tell they are building it with native GLES2, which can be buggy on nVidia proprietary drivers. I see there potential using of GTK+ 3, which can smash both GTK+ 2 and GTK+ 3 in a single process with unpredictable results. Could you compile freshplayerplugin from source? (If you don't have ffmpeg, you'll probably need to disable hw accelerated decoding: |
Tried build with and without |
(Just to be sure.) You made a new source checkout, then created Aside from that, does "videos are slow" include high CPU usage? If yes, could you paste here perf report output? To do that, you'll need some writable directory. Run there
as
I need about 30-40 first lines of that output. You can also redirect output of
|
Yes, build was same as you describe. I removed freshplayerplugin package from distro, build with One thing is, that CPU usage is higher, but not 100%. Also it was split into different cores.
|
There a lot of samples point to X server and its nvidia_drv.so module. Perhaps, particular set of commands that freshplayerplugin sends makes it unhappy, and forces it to switch to processing on a CPU instead of GPU. By the way, I've just learned a new trick with perf (there are still a lot of things to learn). If you still have
But I think, there will be the X server on the first line. |
Since high CPU usage (and therefore stuttering) may be caused by running 3d operations in software mode, it's worth to try to disable 3d completely. That could be done by adding PepperFlash from ChromeOS seems to require 3d to show any visual at all, so you have to use desktop version of PepperFlash to try this. |
There is also another issue, #332, related to OpenGL|ES 2 performance. I believe, it mostly affects discrete video adapters. |
@i-rinat wrote:
Yes, you were right. X server is on the first line
|
Had a chance to try on machine with nVidia drivers. Flash version of Youtube plays just fine, with no significant load in both inline and fullscreen modes. SWF on speedtest.net caused Also hw accelerated decoding doesn't work — ffmpeg tells about errors in H.264 stream. I thought wrong buffer ordering was a real issue but it was fixed for some time. (And now I'm not sure that I tried the most recent version of code.) Is there any sample URL with an example of slowness which I can try? |
Yes, I've tested it on stream.cz e.g. https://www.stream.cz/zrouti/10010590-treti-epizoda#nejnovejsi |
I see there HTML5 video player (Firefox 46.0.1). Not a sign of Flash. |
As I know, if you have installed flash with "always activate" option, then flash is preferred. |
Indeed, that was an old version. With recent version H.264 decoding is fine. I also stumbled upon an error message about vsync. On my machine vsync was switched off automatically, but there could be cases where it can cause issues. @hlavki, try to add |
Sorry for delay, I had to wait for new Nvidia driver, because of incompatibility with kernel 4.6.x. |
Let's hope that driver update will fix issue for @Elrondo46 too. 😃 |
firefox
Tried with vdpau too same prob, said it's activated but slower than software accel.
Nvidia close source with firefox last version.
The text was updated successfully, but these errors were encountered: