iTunes performance issues?

Post » Tue Apr 09, 2013 1:56 am

Recently, whenever I open a new program (be it Windows Explorer, a web browser, or whatever) with iTunes playing in the background, the music goes all funny. It slows down and the sound messes up. I can't explain it. The problem isn't experienced with any other music software though...
User avatar
Emmi Coolahan
 
Posts: 3335
Joined: Wed Jan 24, 2007 9:14 pm

Post » Tue Apr 09, 2013 10:23 am

iTunes is one of the more resource heavy music playing programs.
User avatar
Christie Mitchell
 
Posts: 3389
Joined: Mon Nov 27, 2006 10:44 pm

Post » Tue Apr 09, 2013 4:10 am

What music are you listening to..
User avatar
cassy
 
Posts: 3368
Joined: Mon Mar 05, 2007 12:57 am

Post » Mon Apr 08, 2013 7:00 pm

What music are you listening to..
I've tried it with multiple tracks. When I open a program such as Skype when iTunes is playing music, it slows down, judders and skips.
User avatar
marina
 
Posts: 3401
Joined: Tue Mar 13, 2007 10:02 pm

Post » Tue Apr 09, 2013 4:44 am

Most music players don't cache the entire song in system memory. They use a buffer of so many milliseconds, load that amount of song at a time, and load the next so many milliseconds while what's currently in the buffer plays back. This uses some amount of your CPU, hard drive, and memory depending on the player, the song file, and the buffer size.

When you're loading a program, that program uses all the same bits of hardware to launch. Depending on your system, the hardware might not be able to flawlessly keep up with the task of loading and unloading the buffer while also loading a program, especially if the buffer is very small. Then even a slight hiccup will cause a delay between loading and unloading it.

The best solution would be to increase the buffer length. That means the player loads more of the song at a time, so if there's a hiccup while loading the next buffer there's still plenty of time for it to catch up to the playback. I don't know how to do that in iTunes because I will never touch iTunes.

Note that with a long buffer, there may be a delay between tracks if you're using some sort of random playback order, or when you manually select a track. That's because it has to fill the whole buffer before it plays. This should only matter with very high bitrate files.
User avatar
joannARRGH
 
Posts: 3431
Joined: Mon Mar 05, 2007 6:09 am

Post » Tue Apr 09, 2013 7:12 am

iTunes is one of the more resource heavy music playing programs.
I know it is, but I never used to have this problem. It "lags" even when just opening a web-browser...
User avatar
carly mcdonough
 
Posts: 3402
Joined: Fri Jul 28, 2006 3:23 am

Post » Tue Apr 09, 2013 7:36 am

Most music players don't cache the entire song in system memory. They use a buffer of so many milliseconds, load that amount of song at a time, and load the next so many milliseconds while what's currently in the buffer plays back. This uses some amount of your CPU, hard drive, and memory depending on the player, the song file, and the buffer size.

When you're loading a program, that program uses all the same bits of hardware to launch. Depending on your system, the hardware might not be able to flawlessly keep up with the task of loading and unloading the buffer while also loading a program, especially if the buffer is very small. Then even a slight hiccup will cause a delay between loading and unloading it.

The best solution would be to increase the buffer length. That means the player loads more of the song at a time, so if there's a hiccup while loading the next buffer there's still plenty of time for it to catch up to the playback. I don't know how to do that in iTunes because I will never touch iTunes.
Does anyone know? I am also currently playing using Direct Sound. Will switching to Windows Audio Session or whichever perhaps improve this?
User avatar
Laura Samson
 
Posts: 3337
Joined: Wed Aug 29, 2007 6:36 pm

Post » Mon Apr 08, 2013 8:41 pm

I just checked and my CPU and RAM is fine? Not maxing out when opening new stuff.
User avatar
CArla HOlbert
 
Posts: 3342
Joined: Wed Feb 21, 2007 11:35 pm

Post » Tue Apr 09, 2013 5:17 am

I just checked and my CPU and RAM is fine? Not maxing out when opening new stuff.
It doesn't have to max out, it just has to slip up. Just like how if you launch two programs at once, they aren't likely to load as quickly as they would individually, even if the CPU is up to the task. Only this time your music is trying to play back almost in real time, so the margin of error is much more noticeable.

It's an issue of managing many instructions at once. Certain instructions take priority.

The buffer may not even be your issue, but it sounds like it from my experience.

Did you really have to triple post, though? Maybe you should try something yourself instead, like a new program to see if it works without issue. Give us more information to go on.
User avatar
Mel E
 
Posts: 3354
Joined: Mon Apr 09, 2007 11:23 pm


Return to Othor Games