INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Media Center playback causing other programs to stutter  (Read 1388 times)

RD James

  • Citizen of the Universe
  • *****
  • Posts: 1871
Media Center playback causing other programs to stutter
« on: May 25, 2020, 04:33:31 am »

I didn't realize my old post on this was in the MC25 forum, so I'm posting it again here.
When Media Center is playing music, it can cause stuttering in other programs/games.
 
It seems to be a fairly consistent stutter that occurs every second or so.
It does not matter which playback device is being used, or the output method (WASAPI or DirectSound). Even MC's Null Output device causes this.
My suspicion is that it's something to do with the way that MC updates its UI, as it happens roughly every second, and there have been weird bugs with that in the past where MC could cause windows of other applications to flicker.
 
Here is a video example showing these stutters on a frame-time graph while a game is running at 90 FPS in the background: https://www.youtube.com/watch?v=BNkkrerKfi8
Note that it only happens with MC, and not any other media player - and also occurs while resizing MC's window.
 
A consistent and easily-reproducible test I have found recently is to load up a fresh profile in Firefox 76 (current version) and visit this web page: https://www.testufo.com/framerates-text#pps=240&count=1
As soon as playback starts in Media Center it is no longer able to sync, and the page stutters quite obviously every second or so.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10728
Re: Media Center playback causing other programs to stutter.
« Reply #1 on: May 25, 2020, 05:26:41 am »

Can you try turning off the spectrum analyzer in the main bar?

That website test seems flaky at best. No matter what kind of audio player I use, it causes it to stutter. foobar2000, or MPC-HC, all cause various degrees of stuttering.
Logged
~ nevcairiel
~ Author of LAV Filters

RD James

  • Citizen of the Universe
  • *****
  • Posts: 1871
Re: Media Center playback causing other programs to stutter.
« Reply #2 on: May 25, 2020, 05:31:58 am »

Can you try turning off the spectrum analyzer in the main bar?
I've tried turning everything off and minimizing the window, and it still happens.
Even running Media Server, closing Media Center, and starting playback via JRemote causes the stuttering to occur.

That website test seems flaky at best. No matter what kind of audio player I use, it causes it to stutter. foobar2000, or MPC-HC, all cause various degrees of stuttering.
Even on a clean profile in Firefox? (legacy config options/add-ons may not have Firefox working as it should).
That's no good then. I thought I had found a test which was easy to reproduce anywhere without requiring setups like installing large games/demos and configuring tools to get a frame-time graph like the video linked above.
 
I only get the loss of sync with Media Center here.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10728
Re: Media Center playback causing other programs to stutter.
« Reply #3 on: May 25, 2020, 05:45:20 am »

Even on a clean profile in Firefox? (legacy config options/add-ons may not have Firefox working as it should).

I don't usually use firefox, so i just did a clean install, and as soon as I open eg. foobar2000 and start FLAC playback, the frame rate drops from stable 144 to as low as 126 (with an average at 134 or so).
(For the record, Chrome behaves the exact same way)

With Media Center, for comparison, with the spectrum analyzer turned off, I sometimes get a yellow stutter warning, with dips maybe to 140 at most, but often going back to green.
With the spectrum analyzer on, I get similar behavior to foobar - a tad bit better still even.

In neither case do I observe a stutter every second, it just gets overall a bit less smooth.
Logged
~ nevcairiel
~ Author of LAV Filters

RD James

  • Citizen of the Universe
  • *****
  • Posts: 1871
Re: Media Center playback causing other programs to stutter.
« Reply #4 on: May 25, 2020, 05:51:44 am »

I don't usually use firefox, so i just did a clean install, and as soon as I open eg. foobar2000 and start FLAC playback, the frame rate drops from stable 144 to as low as 126 (with an average at 134 or so).
(For the record, Chrome behaves the exact same way)

With Media Center, for comparison, with the spectrum analyzer turned off, I sometimes get a yellow stutter warning, with dips maybe to 140 at most, but often going back to green.
With the spectrum analyzer on, I get similar behavior to foobar - a tad bit better still even.

In neither case do I observe a stutter every second, it just gets overall a bit less smooth.
Ah, try setting the refresh rate lower. I've found that Firefox doesn't handle high refresh rates well and may not even sync properly without anything playing. 100Hz is fine here, but I'd start with 60.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10728
Re: Media Center playback causing other programs to stutter.
« Reply #5 on: May 25, 2020, 05:58:31 am »

At 60 fps its green in any and all scenarios here.
Logged
~ nevcairiel
~ Author of LAV Filters

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10728
Re: Media Center playback causing other programs to stutter.
« Reply #6 on: May 25, 2020, 06:32:05 am »

Actually even though the website doesnt report any error, I can see an occasional hitch during playback. Might have a lead on whats causing it, discussing it internally.
Logged
~ nevcairiel
~ Author of LAV Filters

jkauff

  • World Citizen
  • ***
  • Posts: 198
Re: Media Center playback causing other programs to stutter.
« Reply #7 on: May 26, 2020, 05:54:27 am »

I've had stuttering issues dating back a month or so. I spent days trying to eliminate or reduce other activity while my players are active (same list as Hendrik).

I finally found the culprit. Malwarebytes 4.0 has a real-time protection feature that watches for various forms of potentially malicious activity. Turning it off (and the notifications that remind you constantly that it's turned off) eliminated all my stuttering issues.

I've used Malwarebytes for years, so I assume this is a recent feature. Just goes to show that even your trusted applications can't necessarily be trusted forever.
Logged

RD James

  • Citizen of the Universe
  • *****
  • Posts: 1871
Re: Media Center playback causing other programs to stutter.
« Reply #8 on: May 26, 2020, 06:10:07 am »

Actually even though the website doesnt report any error, I can see an occasional hitch during playback. Might have a lead on whats causing it, discussing it internally.
That sounds promising. I hope it leads somewhere.
 
I've had stuttering issues dating back a month or so. I spent days trying to eliminate or reduce other activity while my players are active (same list as Hendrik).

I finally found the culprit. Malwarebytes 4.0 has a real-time protection feature that watches for various forms of potentially malicious activity. Turning it off (and the notifications that remind you constantly that it's turned off) eliminated all my stuttering issues.

I've used Malwarebytes for years, so I assume this is a recent feature. Just goes to show that even your trusted applications can't necessarily be trusted forever.
I use Windows Defender and have an exception set for Media Center. This is something else.
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7402
  • The color of Spring...
Re: Media Center playback causing other programs to stutter.
« Reply #9 on: May 26, 2020, 06:15:01 am »

I'd be interested to know if there's any DPC latency spikes when this occurs.
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 24.04 LTS Noble Numbat 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | iFi ZEN DAC 3 | Edifier R2000DB Bookshelf Speakers | Audio-Technica ATH-M50x Headphones

RD James

  • Citizen of the Universe
  • *****
  • Posts: 1871
Re: Media Center playback causing other programs to stutter.
« Reply #10 on: May 26, 2020, 06:26:51 am »

I'd be interested to know if there's any DPC latency spikes when this occurs.
I'd have to check again to confirm, but I don't believe there were any when I last tested it.
Logged

RD James

  • Citizen of the Universe
  • *****
  • Posts: 1871
Re: Media Center playback causing other programs to stutter
« Reply #11 on: June 01, 2020, 05:45:43 am »

Just checking in to see if there are any updates on this.
Logged

mark_h

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1854
Re: Media Center playback causing other programs to stutter
« Reply #12 on: June 02, 2020, 02:44:54 am »

See this all the time.  Usually during track transitions (loading/decoding into memory) or in particular big expansive smartlists making use of lots of variables (heavy load).  Can make games stutter and in-game control go wonky for a second or two.
Logged

RD James

  • Citizen of the Universe
  • *****
  • Posts: 1871
Re: Media Center playback causing other programs to stutter
« Reply #13 on: June 02, 2020, 10:34:25 am »

See this all the time.  Usually during track transitions (loading/decoding into memory) or in particular big expansive smartlists making use of lots of variables (heavy load).  Can make games stutter and in-game control go wonky for a second or two.
That's a separate issue caused by high CPU utilization or disk/network access.
It's something I would love to see solved as well, but can be worked around by using memory playback set to load one track into memory at a time rather than decoding into memory or loading an entire playlist, or by disabling memory playback altogether.
 
This is a constant stutter during playback at all times in many applications/games, unrelated to CPU/disk utilization.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10728
Re: Media Center playback causing other programs to stutter
« Reply #14 on: June 02, 2020, 01:10:30 pm »

Try it out with 26.0.87 and see if it makes a difference
Logged
~ nevcairiel
~ Author of LAV Filters

RD James

  • Citizen of the Universe
  • *****
  • Posts: 1871
Re: Media Center playback causing other programs to stutter
« Reply #15 on: June 03, 2020, 09:49:11 am »

Try it out with 26.0.87 and see if it makes a difference
Well, I'm currently in the process of recovering from multiple drive failures (never buy Samsung QVO SSDs) so I can't test this extensively, or in games yet, but it looks promising. It no longer seems to interfere with Firefox at least.
Logged
Pages: [1]   Go Up