MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / ReadyToSend

Method ReadyToSend

neo/framework/async/MsgChannel.cpp:316–327  ·  view source on GitHub ↗

================= idMsgChannel::ReadyToSend ================= */

Source from the content-addressed store, hash-verified

314=================
315*/
316bool idMsgChannel::ReadyToSend( const int time ) const {
317 int deltaTime;
318
319 if ( !maxRate ) {
320 return true;
321 }
322 deltaTime = time - lastSendTime;
323 if ( deltaTime > 1000 ) {
324 return true;
325 }
326 return ( ( lastDataBytes - ( deltaTime * maxRate ) / 1000 ) <= 0 );
327}
328
329/*
330===============

Callers 1

RunFrameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected