OpenJKDF2 icon indicating copy to clipboard operation
OpenJKDF2 copied to clipboard

Sound Stuttering with 0.7.6

Open DanKorell opened this issue 2 years ago • 3 comments

Just downloaded version 0.7.6 and jumped into my Mysteries of the Sith game. My save was just at the start of Level 6 anyway, so the prompt it gave to restart the level due to the save being from an older version didn't remove any of my progress.

When the level first started, in the hangar where your ship lands, I noticed that the music was stuttering quite a bit. Then after going into the next area I noticed that when I bumped into an NPC, causing a new voice line to be said, that would cause the game to almost freeze momentarily. Then I got attacked by a group of Gran in the bar area and it became a slideshow.

So, I quit the game and restarted and it seemed better at first, but the music stuttering did come back after a little while. The rest of the sounds were fine this time, though, and I was able to finish the level.

Did anything change with the audio between 0.7.4 and 0.7.6?

DanKorell avatar Jan 05 '23 19:01 DanKorell

Did anything change with the audio between 0.7.4 and 0.7.6?

Quite literally nothing, what I did change was a lot of texture caching details so that it wouldn't access the disk randomly during gameplay, if texture precaching is turned on (Setup > Display > Advanced > Enable Texture Precache). If you go back to 0.7.4 or 0.7.5, does the stutter go away?

Edit: It's worth noting though, sounds are actually still streamed in from disk sometimes and can cause stuttering on slow HDDs, I guess that might be something worth improving if it's actually an issue.

shinyquagsire23 avatar Jan 05 '23 19:01 shinyquagsire23

Well, I just checked the texture precache setting was turned on, which it was, and tried playing MotS Level 6 again, and it was fine this time. Intermittent issue? Or maybe something else was happening with my PC at the time (I think there was a Steam game download/update going on in the background).

Let me keep an eye on it for now, and if it re-occurs I'll try rolling back to 0.7.4 or maybe give 0.7.5 a try.

DanKorell avatar Jan 05 '23 23:01 DanKorell

Ah, yeah a steam download could maybe suck up enough disk bandwidth to cause audio stutters maybe. I've also had Windows 10 push my PC to a crawl when I power it on after a few months of being powered off, due to Windows updates.

I've definitely had audio-related stutters in the past though, but they turned out to be me using OpenAL wrong (and it was very specifically/consistently happening with the Thermal Detonator trap buttons in MP maps). But yeah I'll def keep a pin on audio/disk optimizations.

shinyquagsire23 avatar Jan 05 '23 23:01 shinyquagsire23