fix comment and remove dead code

This commit is contained in:
ZappoMan 2014-03-11 21:25:30 -07:00
parent 025da315c6
commit e72d3127bf

View file

@ -115,12 +115,8 @@ bool PacketSender::threadedProcess() {
}
}
// if threaded and we haven't slept? We want to sleep a little so we don't hog the CPU, but
// we don't want to sleep too long because how ever much we sleep will delay any future unsent
// packets that arrive while we're sleeping. So we sleep 1/2 of our target fps interval
// if threaded and we haven't slept? We want to wait for our consumer to signal us with new packets
if (!hasSlept) {
//usleep(MINIMAL_SLEEP_INTERVAL);
// wait till we have packets
_waitingOnPacketsMutex.lock();
_hasPackets.wait(&_waitingOnPacketsMutex);