Framework.SetConstantFrameTime Method

Language:

Enables or disables a constant frame time.

Definition

Visual Basic Public Sub SetConstantFrameTime( _
    ByVal constantFrameTime As Boolean _
)
C# public void SetConstantFrameTime(
    bool constantFrameTime
);
C++ public:
void SetConstantFrameTime(
    bool constantFrameTime
);
JScript public function SetConstantFrameTime(
    constantFrameTime : boolean
);

Parameters

constantFrameTime System.Boolean
Set to true to enable a constant frame time; otherwise, false.

Remarks

The default rate is one second for every 30 frames, or 0.0333 seconds per frame.

This function is useful for saving the rendered output to a video format for playback, allowing animation at a rate independent of the actual rate at which frames were rendered.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center