ViewSpeedTest

Tests Rhino's display performance by regenerating a view a user-defined number of times. Note, this method is functionally equivalent to the TextMaxSpeed command.

Syntax

rhinoscriptsyntax.ViewSpeedTest (view=None, frames=100, freeze=True, direction=0, angle_degrees=5)

rhinoscript.view.ViewSpeedTest (view=None, frames=100, freeze=True, direction=0, angle_degrees=5)

Parameters

view

Optional.  String or Guid.  The title or identifier of the view.  If omitted, the current active view is used.

frames

Optional.  Number.  The number of frames, or times to regenerate the view. If omitted, the view will be regenerated 100 times.

freeze

Optional.  Boolean.  If True (Default), then Rhino's display list will not be updated with every frame redraw. If False, then Rhino's display list will be updated with every frame redraw.

direction

Optional. Number.  The direction to rotate the view, where 0 = Right, 1 = Left, 2 = Down, and 3 = Up. The default direction is Right (0).

angle

Optional.  Number.  The angle to rotate. If omitted, the rotation angle of 5.0 degrees will be used.

Returns

Number

The number of seconds it took to regenerate the view frames number of times, if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

view = "Perspective"

seconds = rs.ViewSpeedTest(view, 100)

if seconds:

    print "Time to regen viewport 100 times =", seconds, "seconds."