2 # valgrind --tool=callgrind --instr-atstart=no python q4.py ~/DeereModels/models4dirk/planterHeavy/planter_lod.osb
14 def main(argv
=sys
.argv
):
21 print "Loading %s..." % i
,
23 scene
.addChild(loadScene(i
))
26 #g = createGraphOp("GeoType")
30 win
.setSize(1000,1000)
40 test
.makeOrbit(0, 0, 1)
41 #test.setIgnoreGeometry(True)
42 test
.useRenderTraversal(True)
44 print "Turning on profiling..."
45 os
.spawnlp(os
.P_NOWAIT
,"callgrind_control","callgrind_control","-i","on")
48 print "Running test..."
51 print "Turning off profiling..."
52 os
.spawnlp(os
.P_NOWAIT
,"callgrind_control","callgrind_control","-i","off")
55 print "FPS:", test
.getFPS()
58 if __name__
== '__main__':