You've already forked godot
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user