1 # Simple OpenSG Benchmark
3 from sys
import argv
, exit
5 from string
import atof
, atoi
12 # command line handling
14 opts
, args
= getopt
.getopt(argv
[1:], "u:f:h", ["up=", "frames=", "help"])
15 except getopt
.GetoptError
:
19 if opt
in ("-h", "--help"):
23 print "Up set to ", ups
26 print "Frames set to ", frames
30 print "Loading " + args
[0] + "..."
31 scene
=loadScene(args
[0])
33 # Define the Window's parameters
42 test
.setNFrames(frames
)
47 test
.makeOrbit(atof(up
[0]),atof(up
[1]),atof(up
[2]))
48 #test.setIgnoreGeometry(True)
49 test
.useRenderTraversal(True)
52 print "Path took %f seconds: %f fps" % (test
.getTime(), test
.getFPS())