[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:
parent
1e0d563467
commit
f1dc6cc9e4
2 changed files with 66 additions and 58 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue