共用方式為


MaxFrameRate

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the maximum number of frames to render per second.

frameRate = silverlightObject.settings.MaxFrameRate
silverlightObject.settings.MaxFrameRate = frameRate

Property Value

Type: integer

An integer value that specifies the maximum number of frames to render per second.

This property is read/write. The default value is 60.

Managed Equivalent

MaxFrameRate

Remarks

This property is available on the settings subobject of a Silverlight plug-in instance.

The actual frame rate that Silverlight content renders depends on system load performance. The maximum frame rate is not capped.

Note that there is a mismatch in naming between the parameter in CreateObject/CreateObjectEx silverlight.js functions and the run-time property. The instantiation parameter is named framerate and this run-time property is named MaxFrameRate, but they both refer to the same value.

The format of the frame rate counter is as follows:

fps:currentFramerate/maxFramerate

currentFramerate is the optimal frame rate that would apply in the absence of an upper frame rate limit, based on conditions in the plug-in's environment and as reported by the plug-in. maxFramerate is configurable through the framerate initialization parameter. Each number is a value that reports frames per second (fps). Whichever number is lower is the actual displayed frame rate.

The script syntax shown is for using the MaxFrameRate property at run time. You can also set the property during initiation, using either object param syntax or the silverlight.js helper functions. See MaxFrameRate (Silverlight Plug-in Object).

Applies To

Silverlight Plug-in