9 for i
in range(-nc
,nc
):
10 for j
in range(-nc
,nc
):
11 geo
=makePlane(.8,.8,128,128)
13 geo
.translate(i
*2, j
*2, 0)
29 for i
in scene
.geometries():
35 # Statistics collection frame
40 print " cached: %d tri/frame at %.2f FPS: %.0f tri/sec" % \
41 ( test
.getStatValue("NTriangles", 0), fps
, \
42 test
.getStatValue("NTriangles", 0) * fps
)
44 print "noncached: %d tri/frame at %.2f FPS: %.0f tri/sec" % \
45 ( test
.getStatValue("NTriangles", 0), ncfps
, \
46 test
.getStatValue("NTriangles", 0) * ncfps
)