Skip to content

Commit 9be2120

Browse files
committed
moved the steam audio main thread pause to later in the queue
1 parent 194f7d1 commit 9be2120

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

Basis/Packages/com.basis.eventdriver/BasisEventDriver.cs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -547,12 +547,6 @@ private void LateUpdateBody()
547547
{
548548
BasisRemoteAudioDriver.Apply();
549549
}
550-
#if STEAMAUDIO_ENABLED
551-
using (Prof.SteamAudioApply.Auto())
552-
{
553-
SteamAudioManager.Apply();
554-
}
555-
#endif
556550
ProfileEnd(PROF_REMOTE_AUDIO_APPLY);
557551

558552
try
@@ -770,11 +764,19 @@ private void OnBeforeRenderBody()
770764

771765
ProfileBeforeRenderInit();
772766

767+
#if STEAMAUDIO_ENABLED
768+
using (Prof.SteamAudioApply.Auto())
769+
{
770+
SteamAudioManager.Apply();
771+
}
772+
#endif
773+
773774
if (BasisLocalPlayer.PlayerReady)
774775
{
775776
try { using (Prof.SimulateOnRender.Auto()) BasisLocalPlayer.Instance.SimulateOnRender(); }
776777
catch (Exception ex) { BasisDebug.LogErrorOnce($"BasisEventDriver.SimulateOnRender failed: {ex}", BasisDebug.LogTag.Event); }
777778

779+
778780
try { using (Prof.EyeTrackingSimulate.Auto()) Basis.Scripts.Device_Management.EyeTracking.BasisEyeTrackingManager.Simulate(); }
779781
catch (Exception ex) { BasisDebug.LogErrorOnce($"BasisEventDriver eye-tracking simulate failed: {ex}", BasisDebug.LogTag.Event); }
780782

0 commit comments

Comments
 (0)