1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

[Net] Optimize object cache notification send for single peer.

It used to always cycle all the peers when checking which one needed to
be notified, now it only does that when the target is multiple (i.e.
broadcast or exclusion).
This commit is contained in:
Fabio Alessandrelli
2022-02-21 19:45:18 +01:00
parent 1e0d563467
commit f1dc6cc9e4
2 changed files with 66 additions and 58 deletions

View File

@@ -60,7 +60,7 @@ private:
int last_send_cache_id = 1;
protected:
bool _send_confirm_path(Node *p_node, NodePath p_path, PathSentCache *psc, int p_target);
Error _send_confirm_path(Node *p_node, NodePath p_path, PathSentCache *psc, const List<int> &p_peers);
static MultiplayerCacheInterface *_create(MultiplayerAPI *p_multiplayer);
public: