Sound is laggy/stuttering

The worst monsters in the Hearthlands warp the fabric of space and time...

Re: Sound is laggy/stuttering

Postby MagicManICT » Sat Feb 06, 2016 9:41 pm

If I understand the question correctly, there is no programming involved. This is a console command, similar to cheat codes and console commands in other games. When you press the colon key ':', it opens the command console. Type the rest of the command and push enter. Make sure you don't type it into chat or you just send what you're trying to do through chat. You can change the number and make it larger if your sound is stuttering.
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.
User avatar
MagicManICT
 
Posts: 18436
Joined: Tue Aug 17, 2010 1:47 am

Re: Sound is laggy/stuttering

Postby SiO2 » Sun Feb 07, 2016 2:08 am

MagicManICT wrote:When you press the colon key ':', it opens the command console.

Thanks.
For my Core i5 2450M + 4 Gb RAM (notebook) + W7 x64 + Java 8 x64 (update 71)
:audiobuf 2048 makes that terrible noises just a slightly laggy. Raising audiobuf any further seems to be useless, so this is a performance issue, probably.
Bronies for life /)
User avatar
SiO2
 
Posts: 220
Joined: Sun Feb 17, 2013 10:46 pm

Re: Sound is laggy/stuttering

Postby linkfanpc » Fri Feb 26, 2016 4:02 am

Oh yeah, and can confirm. 8192 fixes laggy sound.

Woot-woot! Beautiful work on the music Seatribe! Love you guys!
Waiting for something to happen? Everything is going to be okay.
jorb wrote:Hitting a "Ghejejiiwlonk" with your "Umappawoozle" for eightyfifteen points of "Sharmakookel", simply makes no sense.

W7: Semi-Hermit
W8: Semi-Hermit
W9-13: Lawspeaker of villages of myself-4 people.

There's SOMETHING behind you.
User avatar
linkfanpc
 
Posts: 2054
Joined: Wed Aug 05, 2015 7:07 pm
Location: Black Space

Re: Sound is laggy/stuttering

Postby Ragnar214 » Fri Apr 15, 2016 5:29 pm

Do I have to input the script code every time I start up the game and log in?

WOW.

So this fix makes the whole game work better.

My fan is no longer screaming (And I have a pretty high end PC) It used to scream playing this. I thought it was the graphics.

It's the Audio.

Changed it to 8192 like you guys said. Game works basically flawlessly now.
Ragnar214
 
Posts: 276
Joined: Fri Aug 28, 2015 11:09 pm

Re: Sound is laggy/stuttering

Postby loftar » Sun Apr 17, 2016 12:10 am

Ragnar214 wrote:My fan is no longer screaming (And I have a pretty high end PC) It used to scream playing this. I thought it was the graphics.

I find it extremely hard to imagine that the audiobuf command would change that, though. It doesn't change the total CPU usage of the audio thread, only how much audio it buffers at a time. Then again, of course, I can't really imagine why any value above 1024 should be necessary to begin with, since that's already more than 20 ms of latency sensitivity.

Thinking about it, could it potentially be that some audio drivers have some extreme overhead in submitting an audio buffer? Do you guys who have audio troubles have some particular sound card in common?
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 8981
Joined: Fri Apr 03, 2009 7:05 am

Re: Sound is laggy/stuttering

Postby strpk0 » Sun Apr 17, 2016 4:03 am

loftar wrote:
Ragnar214 wrote:My fan is no longer screaming (And I have a pretty high end PC) It used to scream playing this. I thought it was the graphics.

I find it extremely hard to imagine that the audiobuf command would change that, though. It doesn't change the total CPU usage of the audio thread, only how much audio it buffers at a time. Then again, of course, I can't really imagine why any value above 1024 should be necessary to begin with, since that's already more than 20 ms of latency sensitivity.

Thinking about it, could it potentially be that some audio drivers have some extreme overhead in submitting an audio buffer? Do you guys who have audio troubles have some particular sound card in common?


Could using integrated audio chips be the problem here? I'd imagine most if not all people nowadays don't bother purchasing fancy dedicated audio cards, and instead just settle for the motherboard solution.
Do you use a fancy audio card? Could be why the sound is fine for you, if so. I'm using a Realtek ALC662 and do have pretty bad audio stutter issues, for the record.
Granger wrote:Fuck off, please go grow yourself some decency.

Image
User avatar
strpk0
 
Posts: 1164
Joined: Sat Sep 03, 2011 11:44 pm

Re: Sound is laggy/stuttering

Postby MagicManICT » Sun Apr 17, 2016 11:40 am

strpk0 wrote:Could using integrated audio chips be the problem here? I'd imagine most if not all people nowadays don't bother purchasing fancy dedicated audio cards, and instead just settle for the motherboard solution.
Do you use a fancy audio card? Could be why the sound is fine for you, if so. I'm using a Realtek ALC662 and do have pretty bad audio stutter issues, for the record.


Interesting question, but it really depends on motherboard manufacturer and model. Some of the integrated audio processors are discrete hardware processing types, others are software processors, ie rely on the CPU to handle all of the processing. For software processing, any latency in CPU processing (low frame rates, etc) are going to seriously hinder audio performance, too.
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.
User avatar
MagicManICT
 
Posts: 18436
Joined: Tue Aug 17, 2010 1:47 am

Re: Sound is laggy/stuttering

Postby Granger » Sun Apr 17, 2016 2:05 pm

I noticed sound always being fine with one client open, having multiple of them the stuttering happens.
This is on a machine where I can playback a dozend videos in parallel without any problems with the mixing of the sound of them, so my guess is that something about the way the clients drops frames when not the active window also fucks up the sound.
⁎ Mon Mar 22, 2010 ✝ Thu Jan 23, 2020
User avatar
Granger
 
Posts: 9264
Joined: Mon Mar 22, 2010 2:00 pm

Re: Sound is laggy/stuttering

Postby loftar » Sun Apr 17, 2016 3:13 pm

strpk0 wrote:Could using integrated audio chips be the problem here?

While I do indeed use a dedicated sound card on my desktop machine (a SoundBlaster Live that is like 20 years old), audio also works fine on my laptop, which uses some bog-standard Intel HD Audio codec. Jorb also uses his motherboard audio, and has no audio problems (though I don't know what kind of audio solution his motherboard has). So I doubt that is a problem in and of itself; I also generally think it sounds like a stretch to blame the hardware; after all, all it does is use DMA to feed a DAC, pretty much. I'd be more inclined, again, to blame drivers or something like that. I mean, if there is a fairly large amount of overhead in submitting an audio buffer to the hardware, that would certainly explain why larger audio buffer sizes help. (The problem is that the overhead would have to be pretty enormous even at :audiobuf 1024, though, but perhaps the driver might have issues with particular buffer sizes or something weird like that.)

MagicManICT wrote:For software processing, any latency in CPU processing (low frame rates, etc) are going to seriously hinder audio performance, too.

The audio processing runs entirely parallel in its own thread, though, so FPS issues shouldn't be a problem for it.

Granger wrote:I noticed sound always being fine with one client open, having multiple of them the stuttering happens.

Perhaps this could be an issue that only happens when software mixing kicks in, though? Does the audio stutter in both of those clients, or only in the one running in the background, or something like that? Also, does setting audiobuf help?
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 8981
Joined: Fri Apr 03, 2009 7:05 am

Re: Sound is laggy/stuttering

Postby Ragnar214 » Tue Apr 19, 2016 9:28 am

loftar wrote:
Ragnar214 wrote:My fan is no longer screaming (And I have a pretty high end PC) It used to scream playing this. I thought it was the graphics.

I find it extremely hard to imagine that the audiobuf command would change that, though. It doesn't change the total CPU usage of the audio thread, only how much audio it buffers at a time. Then again, of course, I can't really imagine why any value above 1024 should be necessary to begin with, since that's already more than 20 ms of latency sensitivity.

Thinking about it, could it potentially be that some audio drivers have some extreme overhead in submitting an audio buffer? Do you guys who have audio troubles have some particular sound card in common?



I'm not sure why but it does. Physical(Graphical) lag goes away on my client mostly once I use that command. The sound cleans up really nice too.

I'm thinking that maybe the Audio Files themselves may be to blame? You say "It doesn't change the total CPU usage of the audio thread, only how much audio it buffers at a time" Perhaps the way the audio files are saved or the format they are in have something to do with it? Like data is getting jammed up like an upside down beer bottle being pourn out? I don't really know. Audio isn't my speciality and I am leaving audio stuff til last with my programming :P

I'm guessing the :audiobuf 1024 (1024 is the MB in memory set aside to buffer audio correct)?

Drivers may be to blame my PC uses Realtek Audio and I believe it is integrated into the motherboard. I also don't see how an audio thread can affect the visuals and graphics.

This is my motherboard: https://www.asus.com/Motherboards/Z87EXPERT/ I also have an EVGA Geforce 770 Classified 4GB for my GPU. CPU is an Intel i7 4770k 3.5 ghz quad core hyperthreaded. Not sure if that helps you find the problem. But I wouldn't lie... the :audiobuf command certainly improves overall performance.
Ragnar214
 
Posts: 276
Joined: Fri Aug 28, 2015 11:09 pm

PreviousNext

Return to Bugs

Who is online

Users browsing this forum: Yandex [Bot] and 7 guests