mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
capped runaway Doodle bandwidth usage
This commit is contained in:
parent
72c5092f1d
commit
3a528ca0a4
@ -29,6 +29,10 @@ class DistributedSmoothNodeBase:
|
|||||||
# presumably, we have a doId at this point
|
# presumably, we have a doId at this point
|
||||||
return "sendPosHpr-%s" % self.doId
|
return "sendPosHpr-%s" % self.doId
|
||||||
|
|
||||||
|
def setPosHprBroadcastPeriod(self, period):
|
||||||
|
# call this at any time to change the delay between broadcasts
|
||||||
|
self.__broadcastPeriod = period
|
||||||
|
|
||||||
def stopPosHprBroadcast(self):
|
def stopPosHprBroadcast(self):
|
||||||
taskMgr.remove(self.getPosHprBroadcastTaskName())
|
taskMgr.remove(self.getPosHprBroadcastTaskName())
|
||||||
# Delete this callback because it maintains a reference to self
|
# Delete this callback because it maintains a reference to self
|
||||||
@ -58,7 +62,7 @@ class DistributedSmoothNodeBase:
|
|||||||
# Set up telemetry optimization variables
|
# Set up telemetry optimization variables
|
||||||
self.cnode.initialize(self, self.dclass, self.doId)
|
self.cnode.initialize(self, self.dclass, self.doId)
|
||||||
|
|
||||||
self.__broadcastPeriod = period
|
self.setPosHprBroadcastPeriod(period)
|
||||||
# Broadcast our initial position
|
# Broadcast our initial position
|
||||||
self.b_clearSmoothing()
|
self.b_clearSmoothing()
|
||||||
self.cnode.sendEverything()
|
self.cnode.sendEverything()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user