STATISTIC This command will return an internal statistic from the engine.
Syntax
    Return Integer=STATISTIC(Statistic Code)
Parameters
    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
Returns
This command will return an internal statistic from the engine
Description
Providing a value of one as the parameter will cause the command to return the current number of polygons used to render the scene.
Example Code
    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
See also
BASIC3D Commands Menu Index