mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
better time tracking from AI, better cheesy effect logging
This commit is contained in:
parent
d24be80ea1
commit
279db709a3
@ -25,6 +25,7 @@ class ClientRepository(DirectObject.DirectObject):
|
|||||||
self.doId2cdc={}
|
self.doId2cdc={}
|
||||||
self.parseDcFile(dcFileName)
|
self.parseDcFile(dcFileName)
|
||||||
self.cache=CRCache.CRCache()
|
self.cache=CRCache.CRCache()
|
||||||
|
self.serverDelta = 0
|
||||||
|
|
||||||
# Set this to 'http' to establish a connection to the server
|
# Set this to 'http' to establish a connection to the server
|
||||||
# using the HTTPClient interface, which ultimately uses the
|
# using the HTTPClient interface, which ultimately uses the
|
||||||
@ -53,6 +54,22 @@ class ClientRepository(DirectObject.DirectObject):
|
|||||||
self.tcpConn = None
|
self.tcpConn = None
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
def setServerDelta(self, delta):
|
||||||
|
"""
|
||||||
|
Indicates the approximate difference in seconds between the
|
||||||
|
client's clock and the server's clock, in universal time (not
|
||||||
|
including timezone shifts). This is mainly useful for
|
||||||
|
reporting synchronization information to the logs; don't
|
||||||
|
depend on it for any precise timing requirements.
|
||||||
|
|
||||||
|
Also see Notify.setServerDelta(), which also accounts for a
|
||||||
|
timezone shift.
|
||||||
|
"""
|
||||||
|
self.serverDelta = delta
|
||||||
|
|
||||||
|
def getServerDelta(self):
|
||||||
|
return self.serverDelta
|
||||||
|
|
||||||
def parseDcFile(self, dcFileName):
|
def parseDcFile(self, dcFileName):
|
||||||
self.dcFile = DCFile()
|
self.dcFile = DCFile()
|
||||||
readResult = self.dcFile.read(dcFileName)
|
readResult = self.dcFile.read(dcFileName)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user