Page 1 of 1

Video "stuttering" on mouse moving in YouTube

Posted: 2018-01-07, 19:57
by just_passing_by
Happens when I move the mouse over playing video. No problems with Firefox Quantum. Linux Mint 18.3; PM 27.6.2 (64 bit). :problem:

Re: Video "stuttering" on mouse moving in YouTube

Posted: 2018-01-07, 20:07
by Night Wing
After reading your post, I opened a tab, went to YouTube and could not duplicate the stuttering mouse cursor you're experiencing when moving my cursor over a video. I used the YouTube video below and I chose to view it in 720p in HD.

https://www.youtube.com/watch?v=dUkgWgGCbtw

I use 64 bit linux Pale Moon 27.6.2 running in 64 bit linux Mint 18.3 (Sylvia) Xfce.

Re: Video "stuttering" on mouse moving in YouTube

Posted: 2018-01-07, 20:15
by just_passing_by
Hm, it happens even with add-ons disabled.

Re: Video "stuttering" on mouse moving in YouTube

Posted: 2018-01-07, 20:18
by just_passing_by
Very weird! Stopped Foobnix audio player (was running in the background, but not actually playing) and stuttering disappeared as well! :lol:

Well... not for long. Started again. I don't get it. Just to clarify: It happens ONLY when I move the mouse OVER the video that is playing ATM.

Re: Video "stuttering" on mouse moving in YouTube

Posted: 2018-01-07, 22:05
by calibrations
This might be a long shot, but do you happen to have a fancy mouse with a high polling rate (like a gaming mouse)? I think I used to have this issue when watching high quality (1080p and up) videos a long while back but it went away, probably with an update but I can't be sure. But one this I *do* remember it that never happened when I used the trackpad or my old mouse but started when I used a newer "gaming" one, it was really weird.

The fact that it went away when you closed your audio player makes me wonder if it's to do with high CPU usage, but then again if it's not playing I'm not sure what else it would be doing :think:

Re: Video "stuttering" on mouse moving in YouTube

Posted: 2018-01-08, 08:32
by just_passing_by
Yes, my mouse is a Bloody V7
https://www.bloody.com/en/product.php?pid=10&id=107

About the CPU usage, it just can't be. Not that my CPU is very good, but not that weak either. 4 core AMD A8-3870. Never has such issues in the past. I was using Windows OS until recently. This started happening when I moved to Linux Mint.

Re: Video "stuttering" on mouse moving in YouTube

Posted: 2018-01-08, 16:33
by calibrations
I can't reproduce this right now but I'm sure I used to have this, so tonight now I've got time I'll start with a fresh profile in case it was some setting I changed that fixed it.

In the meantime, did you change any advanced settings in about:config that might be related? Does *always* happen, no matter what the YouTube video settings are? What about under Preferences > Content > Video, what do you have ticked under that? There's been a lot of ongoing work on Media Source Extensions, I wonder if that could be related.

Re: Video "stuttering" on mouse moving in YouTube

Posted: 2018-01-08, 20:44
by calibrations
I've managed to reproduce this now, it goes away by enabling Off Main Thread Compositing (OMTC). These are advanced (maybe buggy) settings so be warned, but you should be able to undo them (if it puts your mind at rest make a copy of your profile in ~/.moonchild productions). Your options are -

Hardware Accelerated
: If you have a decent graphics card and drivers maybe try this first. Go to about:config (read the warning! then click the promise) and change layers.acceleration.force-enabled to true (right click it > click toggle). To test it, close Pale Moon, open a terminal and do MOZ_USE_OMTC=1 palemoon, then go find a video. If it doesn't work just launch palemoon normally, then reset the setting.

Basic: If you're like me and you get graphical glitches with the above, go back into about:config, make sure layers.acceleration.force-enabled is set to false, set layers.offmainthreadcomposition.enabled to true. Like with the above close the browser and launch it with MOZ_USE_OMTC=1 palemoon in a terminal and try it out.

If either of these work then come back and we'll try and set MOZ_USE_OMTC=1 somewhere more permanent :)

Re: Video "stuttering" on mouse moving in YouTube

Posted: 2018-01-08, 23:28
by SGvagon
viewtopic.php?f=29&t=16370&hilit=A4tech I have similar problem with my A4Tech 710BK, and only in Palemoon too :-/ .

Re: Video "stuttering" on mouse moving in YouTube

Posted: 2018-01-09, 16:08
by calibrations
SGvagon, looking at your video that certainly looks like a related or identical problem, though I notice you're on Windows :think: I wonder, if you go to about:support in your address bar, what does it say next to GPU Accelerated Windows (under graphics)? If it just says "0/X Basic" (where X is just any number) and specifically doesn't mention OMTC, maybe try the steps I posted above while we wait to see if it worked for OP?

My theory is that most users with gaming type mice are (A) on Windows and (B) have good graphics setups where OMTC seems much more likely to be enabled by default and therefore they rarely see these problems, but who knows :eh:

EDIT: Just noticed you're in the Czech Republic :wave: I don't know what the exact wording will be if about:support is localised, hopefully you'll be able to work it out :D

Re: Video "stuttering" on mouse moving in YouTube

Posted: 2018-01-10, 05:51
by just_passing_by
calibrations wrote:I've managed to reproduce this now, it goes away by enabling Off Main Thread Compositing (OMTC). These are advanced (maybe buggy) settings so be warned, but you should be able to undo them (if it puts your mind at rest make a copy of your profile in ~/.moonchild productions). Your options are -

Hardware Accelerated
: If you have a decent graphics card and drivers maybe try this first. Go to about:config (read the warning! then click the promise) and change layers.acceleration.force-enabled to true (right click it > click toggle). To test it, close Pale Moon, open a terminal and do MOZ_USE_OMTC=1 palemoon, then go find a video. If it doesn't work just launch palemoon normally, then reset the setting.

Basic: If you're like me and you get graphical glitches with the above, go back into about:config, make sure layers.acceleration.force-enabled is set to false, set layers.offmainthreadcomposition.enabled to true. Like with the above close the browser and launch it with MOZ_USE_OMTC=1 palemoon in a terminal and try it out.

If either of these work then come back and we'll try and set MOZ_USE_OMTC=1 somewhere more permanent :)
I think first option worked. :clap:

Yeah, it definitely works! At least for now :D

Now what? Should I launch it every time with that command?

Edit: That's what I get in terminal: "ATTENTION: default value of option force_s3tc_enable overridden by environment.
Can't find symbol 'glXCreateContextAttribsARB'."

Is this ok? And how to save the above setting for permanent use?

Re: Video "stuttering" on mouse moving in YouTube

Posted: 2018-01-10, 08:12
by New Tobin Paradigm
If it otherwise works and resolves then you should be fairly ok.

Re: Video "stuttering" on mouse moving in YouTube

Posted: 2018-01-10, 09:27
by just_passing_by
New Tobin Paradigm wrote:If it otherwise works and resolves then you should be fairly ok.
Yeah, but if I don't start PM with the above command, it doesn't work. So I have to somehow make it permanent. And I'm new to Linux.

Re: Video "stuttering" on mouse moving in YouTube

Posted: 2018-01-10, 12:48
by calibrations
Glad to hear that worked! To set it somewhere more permanent, you should have a file in your home directory called .profile (note the ., the file may be hidden in your file manager, there should be a setting somewhere to "Show Hidden Files". If you're using Nemo in Cinnamon I think it's under View, or maybe try Ctrl-H as a shortcut). If you're sure it's not there you can just create it. Add a new line at the bottom that says export MOZ_USE_OMTC=1 and save it, then log out and back in again and it should be set so you can launch Pale Moon like you normally would with an icon or in your menu or whatever.

Sorry for not posting that earlier but I wanted to avoid dumping too much info at once (that and I wasn't 100% on which file it should be added to on Mint).
Off-topic:
If you're wondering why that works, before you log in the commands in .profile are automatically executed, and export just means that MOZ_USE_OMTC=1 will be set for all the commands that come after (in the same "scope", kindof like without opening a new terminal) and as your desktop is launched after it'll stay set in your graphical applications.

Re: Video "stuttering" on mouse moving in YouTube

Posted: 2018-01-10, 13:11
by just_passing_by
Do you mean inside .moonchild productions folder or in directory "Home"? I don't have such file. Oops! Appeared after refresh!

Just tested it. Works like a charm! Thank you very much!

Re: Video "stuttering" on mouse moving in YouTube

Posted: 2018-01-10, 15:08
by calibrations
You're very welcome :D If after a bit more use you do notice any graphical problems don't forget you can try the Basic OMTC settings I outlined

Re: Video "stuttering" on mouse moving in YouTube

Posted: 2018-01-10, 16:18
by just_passing_by
Sure I will! :thumbup: