Vizard 8 » Command Index » Vizard modules » viz » <viz>.setCollectRenderStats
8.1

<viz>.setCollectRenderStats

Enable collection of render stats

<viz>.setCollectRenderStats(  
mode  
token = ''  
)  
mode
True/False value or viz.TOGGLE to toggle the current state.
token = ''
A token string to enable/disable collection on. Stats will be collected when at least one token is enabled for stats collection. This allows multiple modules to independently enable stats collection.

Remarks

This command enables the collection of render stats and allows subsequent use of the <viz>.getRenderStats command to retrieve the stats. Collection of render stats is disabled by default.

Return Value

None

Example

import viz
import vizact
viz.go()

viz.add('piazza.osgb')

viz.setCollectRenderStats(True)

def PrintStats():
    print(viz.getRenderStats())

vizact.onkeydown(' ',PrintStats)

See also

<viz>.getRenderStats