FrameRate#

class ansys.stk.core.graphics.FrameRate#

Keeps track of how many times the scenes are rendered per second.

Overview#

reset

Reset the frame rate counter back to zero. The frame rate computation begins anew.

frames_per_second

Get the current frame rate in frames per second.

maximum_number_of_frames

Get or set the maximum number of frames used to determine frame rate. More frames means that the frame rate is averaged over a longer period of time and will fluctuate less than fewer frames would. The minimum value is 2.

Import detail#

from ansys.stk.core.graphics import FrameRate

Property detail#

property FrameRate.frames_per_second: float#

Get the current frame rate in frames per second.

property FrameRate.maximum_number_of_frames: int#

Get or set the maximum number of frames used to determine frame rate. More frames means that the frame rate is averaged over a longer period of time and will fluctuate less than fewer frames would. The minimum value is 2.

Method detail#

FrameRate.reset(self) None#

Reset the frame rate counter back to zero. The frame rate computation begins anew.

Returns:

None