-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Youtube player performance degradation #514
Comments
So in general these would be the steps I would try/recommend:
If all else fails I would really recommend to consider a proxy like Invidious or similar to not use Youtube directly, but that's of course not a solution to your problem, just a general recommendation. |
Thank you for suggestions, just to make sure we are in the same page i'm using Vieb both on Xorg and Wayland (Ubuntu and Fedora respectively), and these are my findings:
|
Thanks for the quick response, the main difference that will be related to video playback would be the used Electron version and thus the Chromium version. The difference between 9.7.1 and 10.3.0 means Chromium 110 and 118, which means a lot has changed in the browser internals too. If you want to absolutely make sure where the issue is, you could do the following to build Vieb (also see #building in the readme):
After doing so and giving me the list of results per version we can either:
Please let me know the results so I can further pinpoint where/why happening exactly. |
And yes, recordings of the performance of both versions of both the Vieb process and the page devtools would make it very clear if this is Youtube using a ton of CPU/computation power or a Vieb process that is working at something. |
just a quick question, to compare i have built 9.7.1 but (F8) is not opening dev tools for Vieb |
The default mapping is fairly recent, but on older Vieb versions you can open it with |
perfect also i'm trying to record fairly consistent scenario of around 20 seconds and recording are about 10-30 MB each, |
The filesize limit is 25MB on github, so that might work if you zip/7z them individually, but otherwise just via Telegram or Matrix works. Do keep in mind that I would really like to hear the result of trying current Vieb code with older Electron/Chromium versions to make sure it's not just a Chromium performance degradation, as per instructions above, you might get some startup errors due to missing APIs, but that's just for handling the custom viewer protocols such as the markdownviewer. |
ok, i'm having embarrassing issue now: electron versions 25 and above are not letting me save the performance timeline with and error: i'm tring to do as close as possible scenario each run:
in testing with clean (dev) profile problem was there but less pronounced but in any case my feeling is still that vieb > 10 has a problem. 9.7.1-c-23.2.zip i was also able to build Vieb 7.9.1 with electron 26.1 and problem was also not present. in the process i have tried to isolate as much variables as i could but also i have few more ideas to try, one of which is having multiple youtube tabs and seeing if that has any effect on performance. That is next i want to try and i will report back. |
If it turns out to be more related to Vieb's code for some odd reason, you could try to find the commit that caused this by running |
Don't worry i'm happy to help any way i can, Vieb is perfect fit for me and i am daily driving it for almost 2 years now. Also i'm also dev but completely unexperienced in electron so it's bit hard to me to diagnose it directly. If we find that it is vieb code that's making things worse i have plan to do a "binary hunt" for the exact commit but for now i'm trying to establish where in general is the problem. do you have any ideas as to why electron 25 and above is not allowing me to save telemetry/timeline? is is creating the file but then seems to not be able to access it. |
turns out that performance is changing exactly after final 9.7.1 commit. that is commit fd910e0 introduces issues for me. Reading commit i suspected that it is related to adblocker so i set it to Most reliable that i found how to test that is to play some video and then toggle full screen on and off. When adblocker is on, on versions greater than 9.7.1, some lag is accumulating slowly and in some circumstances that i'm not able to reliably repeat UI of player becomes so laggy that it is almost unusable. When adblocker is off there is no perceived lag accumulation and i'm yet to experience any degradation. Turning off adblocking is not a great solution, so i tried to build Vieb with default |
Very interesting that it turns out to be the adblocker. Vieb uses an external package for this, see https://github.com/ghostery/adblocker/tree/master/packages/adblocker-electron. You can change the filter lists using the docs explained at |
great, i was reading doc for adblocker but it was not clear to me that with |
This issue also happens to me, I can also confirm that disabling adblocker fixes it. |
Can you reproduce this in the following project, and if not, can you reproduce it there if you update to a newer Electron as described above? Also make sure to try multiple instances and do monitor the CPU usage. |
i can reproduce it in that project also and the problem is even more pronounced there if anything. Compared with Vieb with adblocker=off cpu usage is about 50% up if not more, but that's hard to measure. |
In that case, it's not a Vieb issue, and it would seem the commit that caused it is already known, as someone just opened a nearly identical issue in their repo also on youtube: ghostery/adblocker#3420 |
i'm glad that source of the problem is identified. At least now i can track that issue on adblocker's side. @Jelmerro thank you for your assistance and great work on this browser! (i think we can close this issue now) |
I'll keep it open for visibility until there is a new stable Vieb version that contains a non-laggy adblocker, because until then this issue is not solved in Vieb either. |
I converted the changes from the PR to patch files, which you can download and store inside an up-to-date Vieb repo inside the |
i have patched (per your instructions) Vieb against latest commit and performance is once again great! I also did a test without patch side by side and i see significant difference so i would say that this patch is solution at least for me. |
Great, thanks for the quick response, I'll let them know that this seems to have fixed the issue. |
Fixed in 10.4.0 🎉 |
Checklist
:help
documentation using/
for helpful informationDescribe the bug
Severe performance degradation of YouTube player. When playing video there is noticeable lag in player interface as well as transition form an to full screen mode. It is getting worse as time progresses and with number of videos played. Degradation includes slow video playback sometimes.
To Reproduce
Use Vieb 10..
Expected behavior
on Vieb 9.. these problems where not observed, so it is expected not to be observed on versions >10.. also
Specs
tested on Ubuntu 20.04.6 LTS (Xorg) and on Fedora 38 (Wayland)
Version: Vieb 10.3.0
The text was updated successfully, but these errors were encountered: