fixed: gcc8 compile issues
[opensg.git] / Tools / osgBench / run_model2.py
blob75e6587a3e915b5122c4bd964167006edc45038f
1 # Simple OpenSG Benchmark
2 from osgbench import *
3 from sys import argv
5 # Load the scene
6 print "Loading " + argv[1] + "..."
7 scene=loadScene(argv[1])
9 # Define the Window's parameters
10 win=TestWindow()
11 win.setSize(900, 900)
12 win.open()
14 # Define the Test(s)
15 test=Test()
16 test.setWindow(win)
17 test.setScene(scene)
18 test.setNFrames(500)
20 test.clear()
21 test.addFov(60)
22 test.makePirouette(0,0,1)
23 #test.setIgnoreGeometry(True)
24 test.useRenderTraversal(True)
26 test.run()
27 print "Path took %f seconds: %f fps" % (test.getTime(), test.getFPS())
29 win.close()