Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Removing the job handle stuff as that could potentially break users trying to get RTT during OnGUI.
  • Loading branch information
NoelStephensUnity committed Oct 31, 2024
1 parent 4360933 commit 6a37df6
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -944,11 +944,8 @@ private bool ProcessEvent()
return false;
}

private JobHandle m_FlushSendJobHandle;

internal override void EarlyUpdate()
{
m_FlushSendJobHandle.Complete();
if (m_Driver.IsCreated)
{
if (m_ProtocolType == ProtocolType.RelayUnityTransport && m_Driver.GetRelayConnectionStatus() == RelayConnectionStatus.AllocationInvalid)
Expand Down Expand Up @@ -985,15 +982,15 @@ internal override void PostLateUpdate()

// Schedule a flush send as the last transport action for the
// current frame.
m_FlushSendJobHandle = m_Driver.ScheduleFlushSend(default);
}
m_Driver.ScheduleFlushSend(default).Complete();

#if MULTIPLAYER_TOOLS_1_0_0_PRE_7
if (m_NetworkManager)
{
ExtractNetworkMetrics();
}
if (m_NetworkManager)
{
ExtractNetworkMetrics();
}
#endif
}
base.PostLateUpdate();
}

Expand Down

0 comments on commit 6a37df6

Please sign in to comment.