Fps |
public class FpsMeter : TextBlock, ICompositionRenderingSubscriber
The FpsMeter type exposes the following members.
Name | Description | |
---|---|---|
DisplayFormatString | Gets or sets the format string that is used to format the FpsMeter results. Default value is "{0} fps; average: {1:0.00} fps" | |
TotalFrames | number of Frames (rendering passes) from the start of measuring or from last Reset. | |
TotalSeconds | number of seconds from the start of measuring or from last Reset. |
Name | Description | |
---|---|---|
Reset | Resets the TotalFrames and TotalSeconds properties - and also the average FPS displayed |
The FpsMeter is using CompositionTarget.Rendering event to measure the numbers of rendering passes that occur in each second and displays the count as FPS value.
When the FpsMeter is not visible any more, the control is unsubscribed from CompositionTarget.Rendering event.