We still don't see any stats for our tasks because we are still printing the task manager before the first frame is being generated. Let's change that next.
To see the statistics on our tasks we just need to move the
print(taskMgr)
command to a place where it will be executed after the first frame has been generated. The simplest solution to that is to move that line into our task method so that it's called every frame. Highlight that line and hit Ctrl+X to cut it. Then paste it into thecycleMove
method just above thereturn
statement.class World: def __init__(self): base.setBackgroundColor(0, 0, 0) self.track = loader.loadModel("../Models/Track.egg") self.track.reparentTo(render) self.track.setPos(0,0,-5) self.cycle1 = loader.loadModel("../Models/Cycle.bam") self.cycle1.reparentTo(render) self.cycle1.setPos(2,15,0) self.cycle2 = loader.loadModel("../Models/Cycle.bam") self.cycle2.reparentTo(render) self...