STATISTIC
This command will return an internal statistic from the engine.
Return Integer=STATISTIC(Statistic Code)
Statistic Code
Integer
Providing a value of one as the parameter will cause the command to return data from within the engine, such as the current number of polygons used to render the scene. A complete list of available codes can be found in the example below
This command will return an internal statistic from the engine
Providing a value of one as the parameter will cause the command to return the current number of polygons used to render the scene.
make object sphere 1,100 : color object 1,rgb(0,32,0)
do
set cursor 0,0
print "NOTE: Area Box refers to STATIC OBJECTS universe sub-divisions"
print
print "Polygons in screen:";statistic(1)
print "Stencil buffer available:";statistic(2)
print "Current Universe Area Box:";statistic(3)
print "Total Number Of Universe Area Boxes:";statistic(4)
print "Number of DrawPrimitive Calls:";statistic(5)
print "Polygons from Current Area Box:";statistic(6)
print "DrawPrimitive Calls from Current Area Box:";statistic(7)
print "Polygons tested for collision:";statistic(8)
print "Volumes tested for collision:";statistic(9)
loop
BASIC3D Commands Menu
Index