Stuttering after upgrading 2.01 to 2.03

I am trying to upgrade from FMOD 2.01 to 2.03 but it’s causing bad stuttering that after a day of debugging I still can’t solve. There are quite a few issues:

  1. a fast MultiInstrument (machine gun) is now stuttering rather than being smooth.
  2. it also doesn’t stop when it is supposed to, seems to continue for up to a second.
  3. some single-sample loops (using a loop region) are briefly cutting out when they repeat.
  4. the first 50-100ms of some sounds (cannons) is cut off, causing their transients to disappear.
  5. some voice lines are missing the start (I have not reproduced this personally but it has been reported to be as much as 1 second, not sure).

Personally I have reproduced everything other than 5, and here is a video of 3 happening, both working (FMOD 2.01) and stuttering (FMOD 2.03): https://www.youtube.com/watch?v=XfiWbPD2QA4

Screenshot of profiling session, note the dips in levels corresponding to stuttering, and the event itself. Very simple:


A few stats about the game:

  • I am testing on Windows, as are other devs and testers all who have reported these issues. The game is Windows-only.
  • Unity version 2022.3. Strangely/interestingly the issues don’t happen when running the game from the editor, only when running the built game.
  • It’s a moderately graphically demanding 3D game.
  • Unity built-in audio is not disabled. Unfortunately it can’t be disabled, the game is quite large/complex and a full migration is not feasible.
  • There are 7 non-Master banks that are loaded at startup.
  • The total size of all banks is 170MB of which 120Mb is voice lines.
  • I have increased the voice limits to 1024/256.
  • Buffer size is set to auto.
  • None of the assets are streaming.

There are no changes between the 2.01 and 2.03 versions of the game other than of course the bank file migration (via studio, using version 2.03.7) and going through the upgrade wizard inside Unity.

This is what I’ve tried so far:

  • Increasing the voice limit to 1024/256. When I ran through the profiler we’re not even close to exceeding the voice limit but I increased this anyway and left it higher.
  • Increasing the buffer size made things super delayed of course, but it also didn’t help with the stuttering.
  • Disabling all parameter updates for other events.
  • Entirely disabling those other events.
  • Calling loadSampleData on the events before starting firing.
  • Disabling Unity audio (for the record… the game doesn’t run at all).
  • I have a modern mid-range gaming PC, but lowering graphical settings to absurdly low levels didn’t help either.

I can send you the profile in that screenshot if it helps.

Hi,

Thank you for all the information and the video.

The profiler session would be great! Please upload the session to your profile with the following settings:

Could you also please apply the following settings:


And also upload the build logs which should be found here: %USERPROFILE%\AppData\LocalLow\CompanyName\ProductName\Player.log

Thanks Connor, I have uploaded those to my profile.