TiScope.UpdateFrameRate

TiScope

Specifies the frame rate at which the Display automatically repaints.

property UpdateFrameRate : Integer

Description

Use UpdateFrameRate to get or set the frame rate at which the Display repaints.

The frame rate is used to improve performance by controlling the number of times the Display repaints itself per second.

Each time a change occurs to the Display that requires a repaint, the Display will determine if a new frame needs to be displayed. The FrameTime is one second divided by the UpdateFrameRate. If a change occurs to the control before the FrameTime has elapsed, the Display is not repainted. If a change occurs to the Display after the FrameTime has elapsed, the Display is repainted and the next frame is started.

There must be a steady stream of changes to the Display that require repainting for the automatic frame rate Display to function correctly. The rate of change per second must be greater than the UpdateFrameRate for the desired frame rate to be achieved.

When the frame rate control is inactive, the Display will attempt to repaint when a change is made to the Display that requires a repaint. The actual number of repaints per second is dependent of the system hardware, system activity, and the number of request being made to repaint the Display .

Note: this property only affects the Display (i.e. the scope portion of the control, not the control panels)

Delphi

iComponent.UpdateFrameRate := 15;

C++ Builder

iComponent->UpdateFrameRate = 15;

Contents | Index | Previous | Next