<div dir="ltr">Hi Eric,<div><br></div><div>1) Speeding up reliable data</div><div><br></div><div>This is a very complex question to me at least. First of all good to separate (incoming/outgoing) messages but I fail to understand the need of a separate thread. Maybe you meant a incoming queue and an outgoing queue, since there can only be one thread accessing ENet at a time (it's not thread-safe). The speed isn't really determined by how fast or how often you call enet_host_service since you seem to always be calling it (also something that tells me that your message sending thread might be messing things up - not thread-safe) but is dependent on how fast the receiver sends back his acks.</div><div><br></div><div>2) No idea. What do you mean?</div><div><br></div><div>Best regards,</div><div><br></div><div>Pablo</div><div class="gmail_extra">-- <br><div class="gmail_signature"><div dir="ltr">////////////////////////////////////////////////////////////////<br>Dr.Sc. Pablo de Heras Ciechomski, founder<br><a href="mailto:pablo@sciencevisuals.com" target="_blank">pablo@sciencevisuals.com</a><br><a href="http://www.sciencevisuals.com/" target="_blank">www.sciencevisuals.com</a></div><div dir="ltr"><br></div></div><div class="gmail_quote">On Thu, Sep 24, 2015 at 3:06 AM, Eric <span dir="ltr"><<a href="mailto:shunxung+enet@gmail.com" target="_blank">shunxung+enet@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><br></div><div><div><div style="font-size:12.25px">Hi all,</div><div style="font-size:12.25px"><br></div><div style="font-size:12.25px">1.  I use a child thread to send many reliable packets in a short time and the main thread is the loop to call <b>enet_host_service</b> regularly(1000ms).  But I found that most of packets are queued in <b>outgoingReliableCommands.  </b>I tried to use <b>enet_host_flush</b> in main thread but it seems unhelpful.</div><div style="font-size:12.25px">How could I speed up sending <b>outgoingReliableCommands </b>(enet_host_service timeout?) or how could I check where the bottleneck is? (because of recv peer side?)</div><div style="font-size:12.25px"><br></div><div style="font-size:12.25px">2. Is it possible to clear specific channel packet data?</div></div><br></div></div>
<br>_______________________________________________<br>
ENet-discuss mailing list<br>
<a href="mailto:ENet-discuss@cubik.org">ENet-discuss@cubik.org</a><br>
<a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" rel="noreferrer" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br>
<br></blockquote></div><br><br>
</div></div>