mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
showbase: Start recording right away when opening PStats connection
Don't wait until the next frame - makes it harder to diagnose long load times in the new Timeline view
This commit is contained in:
parent
739ad1ebd6
commit
65ee79158f
@ -1930,7 +1930,11 @@ class ShowBase(DirectObject.DirectObject):
|
|||||||
if port is None:
|
if port is None:
|
||||||
port = -1
|
port = -1
|
||||||
PStatClient.connect(hostname, port)
|
PStatClient.connect(hostname, port)
|
||||||
return PStatClient.isConnected()
|
if PStatClient.isConnected():
|
||||||
|
PStatClient.mainTick()
|
||||||
|
return True
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|
||||||
def addSfxManager(self, extraSfxManager):
|
def addSfxManager(self, extraSfxManager):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user