Vizard 8 » Command Index » Vizard modules » viz » <viz:window>.setFrameRate
8.0

<viz:window>.setFrameRate

This command displays frame rate information.

<viz:window>.setFrameRate(  
mode # optional mode
)  
mode
Optional parameter for specific types of frame rate reporting display of frame information on rendering screen and turn off display of information. Possible values are: viz.OFF or viz.NICE.

Remarks

Use this command to display the frame rate in the upper left of the main window. To see the Update, Cull, and Draw times of the rendering cycle, set mode equal to viz.NICE. A call to this function with no arguments just turns on frame rate display. To deactivate the output, pass viz.OFF.

Return Value

None

Example

# Show framerate info
viz.window.setFrameRate()

See also

<viz:window>.getFrameRate