mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
better
This commit is contained in:
parent
0b165ff348
commit
aefde5cd66
@ -1502,7 +1502,7 @@ internal static void NetworkEarlyUpdate()
|
|||||||
{
|
{
|
||||||
// process all incoming messages first before updating the world
|
// process all incoming messages first before updating the world
|
||||||
// profiling marker for shallow profiling to show more than "UpdateFunction.Invoke
|
// profiling marker for shallow profiling to show more than "UpdateFunction.Invoke
|
||||||
Profiler.BeginSample("NetworkClient.EarlyUpdate(): Transport Processing");
|
Profiler.BeginSample("NetworkClient: Transport Processing");
|
||||||
if (Transport.active != null)
|
if (Transport.active != null)
|
||||||
Transport.active.ClientEarlyUpdate();
|
Transport.active.ClientEarlyUpdate();
|
||||||
Profiler.EndSample();
|
Profiler.EndSample();
|
||||||
@ -1537,7 +1537,7 @@ internal static void NetworkLateUpdate()
|
|||||||
if (!Application.isPlaying || sendIntervalElapsed)
|
if (!Application.isPlaying || sendIntervalElapsed)
|
||||||
{
|
{
|
||||||
// profiling marker for shallow profiling to show more than "UpdateFunction.Invoke
|
// profiling marker for shallow profiling to show more than "UpdateFunction.Invoke
|
||||||
Profiler.BeginSample("NetworkClient.LateUpdate(): Broadcast");
|
Profiler.BeginSample("NetworkClient: Broadcast");
|
||||||
Broadcast();
|
Broadcast();
|
||||||
Profiler.EndSample();
|
Profiler.EndSample();
|
||||||
}
|
}
|
||||||
|
@ -2036,7 +2036,7 @@ internal static void NetworkEarlyUpdate()
|
|||||||
|
|
||||||
// process all incoming messages first before updating the world
|
// process all incoming messages first before updating the world
|
||||||
// profiling marker for shallow profiling to show more than "UpdateFunction.Invoke
|
// profiling marker for shallow profiling to show more than "UpdateFunction.Invoke
|
||||||
Profiler.BeginSample("NetworkServer.EarlyUpdate(): Transport Processing");
|
Profiler.BeginSample("NetworkServer: Transport Processing");
|
||||||
if (Transport.active != null)
|
if (Transport.active != null)
|
||||||
Transport.active.ServerEarlyUpdate();
|
Transport.active.ServerEarlyUpdate();
|
||||||
Profiler.EndSample();
|
Profiler.EndSample();
|
||||||
@ -2044,7 +2044,7 @@ internal static void NetworkEarlyUpdate()
|
|||||||
|
|
||||||
// step each connection's local time interpolation in early update.
|
// step each connection's local time interpolation in early update.
|
||||||
// profiling marker for shallow profiling to show more than "UpdateFunction.Invoke
|
// profiling marker for shallow profiling to show more than "UpdateFunction.Invoke
|
||||||
Profiler.BeginSample("NetworkServer.EarlyUpdate(): Connections Time Update");
|
Profiler.BeginSample("NetworkServer: Connections Time Update");
|
||||||
foreach (NetworkConnectionToClient connection in connections.Values)
|
foreach (NetworkConnectionToClient connection in connections.Values)
|
||||||
connection.UpdateTimeInterpolation();
|
connection.UpdateTimeInterpolation();
|
||||||
Profiler.EndSample();
|
Profiler.EndSample();
|
||||||
@ -2078,7 +2078,7 @@ internal static void NetworkLateUpdate()
|
|||||||
if (!Application.isPlaying || sendIntervalElapsed)
|
if (!Application.isPlaying || sendIntervalElapsed)
|
||||||
{
|
{
|
||||||
// profiling marker for shallow profiling to show more than "UpdateFunction.Invoke
|
// profiling marker for shallow profiling to show more than "UpdateFunction.Invoke
|
||||||
Profiler.BeginSample("NetworkServer.LateUpdate(): Broadcast");
|
Profiler.BeginSample("NetworkServer: Broadcast");
|
||||||
Broadcast();
|
Broadcast();
|
||||||
Profiler.EndSample();
|
Profiler.EndSample();
|
||||||
}
|
}
|
||||||
@ -2087,7 +2087,7 @@ internal static void NetworkLateUpdate()
|
|||||||
// process all outgoing messages after updating the world
|
// process all outgoing messages after updating the world
|
||||||
// (even if not active. still want to process disconnects etc.)
|
// (even if not active. still want to process disconnects etc.)
|
||||||
// profiling marker for shallow profiling to show more than "UpdateFunction.Invoke
|
// profiling marker for shallow profiling to show more than "UpdateFunction.Invoke
|
||||||
Profiler.BeginSample("NetworkServer.LateUpdate(): Transport Flush");
|
Profiler.BeginSample("NetworkServer: Transport Flush");
|
||||||
if (Transport.active != null)
|
if (Transport.active != null)
|
||||||
Transport.active.ServerLateUpdate();
|
Transport.active.ServerLateUpdate();
|
||||||
Profiler.EndSample();
|
Profiler.EndSample();
|
||||||
|
Loading…
Reference in New Issue
Block a user