1 # Simple OpenSG benchmark
4 # Define the Window's parameters
16 for i
in range(-nc
,nc
):
19 for j
in range(-nc
,nc
):
22 for k
in range(-nc
,nc
):
23 geo
=makeBox(1,1,1, 1,1,1)
24 geo
.translate(i
*2, j
*2, k
*2)
40 print "%d transformed cubes took %f seconds: %f fps" % ((nc
*2)*(nc
*2)*(nc
*2), test
.getTime(), test
.getFPS())
45 for i
in range(0,test
.getNRenderedFrames()):
46 culled
+= test
.getStatValue("culledNodes", i
)
47 culltested
+= test
.getStatValue("cullTestedNodes", i
)
49 print "%d nodes culled, %d nodes culltested" % (culled
, culltested
)