<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Exposing the sleep amount time might be a good idea considering 200
ms makes it totally useless for anything that needs to run in
real-time, like games.<br>
<br>
Are you emitting a signal for each packet received, too?<br>
<br>
On 2012-10-24 03:49, Nathan Osman wrote:
<blockquote
cite="mid:CAA7ohqF_Ct_4eNhbT1pvu+Wobn7z7ZbfJD7iodzqo86noaa+vQ@mail.gmail.com"
type="cite">The overhead is quite minimal. Take the
peerConnected() signal emitted by QENetHost, for example.
Basically all I do once an ENET_EVENT_TYPE_CONNECT comes in is
create a QENetPeer instance and assign the pointer to the data
member of the ENetPeer struct. Then a signal is emitted with the
pointer to the QENetPeer instance.<br>
<br>
My biggest performance-related concern at this point is the QTimer
that calls enet_host_service(). I am using 200 milliseconds right
now and that seems to work well, but I haven't done any extensive
investigation. I might end up making that number a configurable
setting.<br>
<br>
- Nathan<br>
<br>
<div class="gmail_quote">On Tue, Oct 23, 2012 at 4:22 PM, Jay
Sprenkle <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:jsprenkle@gmail.com" target="_blank">jsprenkle@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Interesting. I'm using enet and Qt in a project as well.<br>
Do you have any idea how much overhead using signals and slots
adds?<br>
<div class="im"><br>
<div class="gmail_quote">On Tue, Oct 23, 2012 at 4:51 PM,
Nathan Osman <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:nathan.osman@gmail.com" target="_blank">nathan.osman@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">I am
pleased to announce the first beta of a Qt wrapper for
the ENet library written in C++. The project page can be
found here on Launchpad: <a moz-do-not-send="true"
href="https://launchpad.net/qenet" target="_blank">https://launchpad.net/qenet</a><br>
<br>
</blockquote>
</div>
</div>
---<br>
<i
style="font-size:12px;font-family:Verdana,Helvetica,sans-serif">"Why
do you have that banana in your ear?" <br>
"To keep away the alligators."<br>
"But there are no alligators here."<br>
"See! It's working!"</i>
<div><i
style="font-size:12px;font-family:Verdana,Helvetica,sans-serif">--</i></div>
<br>
<br>
_______________________________________________<br>
ENet-discuss mailing list<br>
<a moz-do-not-send="true" href="mailto:ENet-discuss@cubik.org">ENet-discuss@cubik.org</a><br>
<a moz-do-not-send="true"
href="http://lists.cubik.org/mailman/listinfo/enet-discuss"
target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br>
<br>
</blockquote>
</div>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
ENet-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ENet-discuss@cubik.org">ENet-discuss@cubik.org</a>
<a class="moz-txt-link-freetext" href="http://lists.cubik.org/mailman/listinfo/enet-discuss">http://lists.cubik.org/mailman/listinfo/enet-discuss</a>
</pre>
</blockquote>
<br>
</body>
</html>