Hi everyone, since I’ve installed Panda3D 1.5.0 I’ve been with some ‘random’ problems in my game.
See the image below:
I’m using Windos Vista, but this error also occurs on Windows XP. When it was running on Panda version 1.4.2 this didn’t occur.
I’ve been tracking the code to see some places where it sometimes appears, and one of them seems to be on my gameLoop:
def gameLoop(self, task):
self.dt = task.time - task.last
task.last = task.time
if self.pause or self.dt == 0.0:
print 'task cont!'
return Task.cont
print 'y'
self.generalFsm.update()
return Task.cont
It usually does after the print ‘task cont!’.
This error is random, sometimes does, others doesn’t. It seems that it happens when Task.cont is returned too fast.