Unity-Technologies / com.unity.netcode.gameobjects

Netcode for GameObjects is a high-level netcode SDK that provides networking capabilities to GameObject/MonoBehaviour workflows within Unity and sits on top of underlying transport layer.
MIT License
2.16k stars 435 forks source link

Deferred Messages aren't tracked by the Network Profiler #2152

Open JesseOlmer opened 2 years ago

JesseOlmer commented 2 years ago

Description

When a message is deferred logic returns before NetworkMetrics.TrackRpcReceived is called and our tracking ends up providing inaccurate data.

Reproduce Steps

The method returns before the metrics tracking is invoked

Actual Outcome

Metrics don't record a received RPC

Expected Outcome

Metrics record an RPC received - preferably when it's actually received (not executed), but when it's actually executed would be acceptable.

Environment

ashwinimurt commented 2 years ago

@becksebenius-unity This belongs to the Tools team

ashwinimurt commented 2 years ago

Backlog MTT-4497