mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
added min-lag and max-lag
This commit is contained in:
parent
c2613e4079
commit
dba252933d
@ -125,6 +125,10 @@ class ClientRepository(DirectObject.DirectObject):
|
||||
self.tcpConn.setNoDelay(1)
|
||||
self.qcr=QueuedConnectionReader(self.qcm, 0)
|
||||
self.qcr.addConnection(self.tcpConn)
|
||||
minLag = config.GetFloat('min-lag', 0.)
|
||||
maxLag = config.GetFloat('max-lag', 0.)
|
||||
if minLag or maxLag:
|
||||
self.qcr.startDelay(minLag, maxLag)
|
||||
self.cw=ConnectionWriter(self.qcm, 0)
|
||||
if self.hasProxy:
|
||||
# Now we send an http CONNECT message on that
|
||||
|
Loading…
x
Reference in New Issue
Block a user