Browse Source

Move FMOD mixer thread off the same core as the Unity main thread

console
Nico de Poel 5 years ago
parent
commit
44231b97fa
  1. 5
      Assets/Scripts/AudioManager.cs

5
Assets/Scripts/AudioManager.cs

@ -81,6 +81,11 @@ public class AudioManager : MonoBehaviour
if (fmodSystem.hasHandle())
return;
#if UNITY_PS4 || UNITY_PS5 || UNITY_GAMECORE
// Move FMOD mixer thread off the already heavily congested core 1
FMOD.Thread.SetAttributes(FMOD.THREAD_TYPE.MIXER, FMOD.THREAD_AFFINITY.CORE_4);
#endif
FMOD.RESULT result = FMOD.Factory.System_Create(out fmodSystem);
CheckFmodResult(result, "FMOD.Factory.System_Create");

Loading…
Cancel
Save