Table of Contents

Class FpsCounter

Namespace
PluginUI
Assembly
PluginUI.dll

Debug overlay showing the repaint rate (frames per second) and the average frame interval. It forces a continuous repaint while attached, so remove it from release builds. iPlug2 IFPSDisplayControl.

public class FpsCounter : UIElement
Inheritance
FpsCounter
Inherited Members

Constructors

FpsCounter()

Creates the counter.

public FpsCounter()

Properties

Foreground

Text color (null = theme success color).

public Color? Foreground { get; set; }

Property Value

Color?

FramesPerSecond

Measured frames per second.

[Browsable(false)]
public double FramesPerSecond { get; }

Property Value

double

Methods

MeasureOverride(Size)

Natural size of the content for the available size (margins excluded).

protected override Size MeasureOverride(Size available)

Parameters

available Size

Returns

Size

OnAttached()

Called when the element joins a host (subscribe to external events here).

protected override void OnAttached()

OnDetached()

Called when the element leaves its host (unsubscribe here).

protected override void OnDetached()

OnRender(DrawingContext)

Draws the element (below its children).

protected override void OnRender(DrawingContext dc)

Parameters

dc DrawingContext