lidgren / lidgren-network-gen3

Lidgren Network Library
https://groups.google.com/forum/#!forum/lidgren-network-gen3
MIT License
1.19k stars 331 forks source link

Issue with AutoFlushSendQueue #1

Closed ItalyToast closed 9 years ago

ItalyToast commented 9 years ago

When AutoFlushSendQueue is enabled: heartbeat() enumerates all channels on all connections and causes a lot of trashing causing problems if a peer have more than ~60 connections

lidgren commented 9 years ago

Commit d57f7045fe4606ba19fb45f13fec87a0127bac70 adds a flag per peer that is raised by the sender channels; if no message is queued the flag will be false and the channels will not be traversed.

ItalyToast commented 9 years ago

That improved it a lot! thank you :D