root/branches/Carsten_PtrWork2/Tools/osgBench/test2.py

Revision 213, 1.1 kB (checked in by dirk, 2 years ago)

Added simple benchmarking toolkit. Not for permanent use, just for now.

  • Property svn:executable set to *
Line 
1 # Simple OpenSG Benchmark
2 from osgbench import *
3
4 # Load the scene
5 print "Loading Beetle..."
6 scene=loadScene("/igd/a4/opensg/siggraph/mybeetle/BeetleAlles_opt.fhs")
7
8 # Define the Window's parameters
9 win=TestWindow()
10 win.open()
11 win.setFullscreen()
12
13 # Define the Test(s)
14 test=Test()
15 test.setWindow(win)
16 test.setScene(scene)
17 test.setNFrames(500)
18
19 test.clear()
20 test.addFov(42)
21 test.addFromOri("-2191.82 -1100.77 1722.85, -1300.51 -2792.8 890.801, 1039.72 -3752.02 589.886, 1126.16 -1396.48 520.712, 2013.53 -1023.08 936.491, 3950.44 -1110.91 1398.72, 4236.92 18.9668 1118.02, 1985.81 3001.34 806.649, -1082.25 2142.65 747.017, -2800.93 -75.5585 505.049", \
22                 "0.619884 -0.479794 -0.62092 1.65974, 0.865916 -0.248026 -0.434364 1.6686, 0.999546 -0.00861513 -0.0288809 1.54227, 0.999546 -0.00861513 -0.0288809 1.54227, 0.84729 0.273698 0.45518 1.41943, 0.653772 0.49471 0.572577 1.6211, 0.531041 0.534708 0.65733 1.98363, 0.0649892 0.671099 0.738513 2.89454, -0.289388 0.641949 0.710039 3.70718, 0.578083 -0.583372 -0.570524 2.06364")
23
24 test.run()
25 print "Beetle path took %f seconds: %f fps" % (test.getTime(), test.getFPS())
26
27 win.close()
28
Note: See TracBrowser for help on using the browser.