Skip to content

FPSCounterComponent Class

A component to draw how many frames per second the engine is performing at.

C#
public class FPSCounterComponent : DrawableGameComponent, IGameComponent, IUpdateable, IDisposable, IDrawable

Inheritance object → Microsoft.Xna.Framework.GameComponent → Microsoft.Xna.Framework.DrawableGameComponent

Implements Microsoft.Xna.Framework.IGameComponent, Microsoft.Xna.Framework.IUpdateable, IDisposable, Microsoft.Xna.Framework.IDrawable

C#
public FPSCounterComponent(Game game)

game Microsoft.Xna.Framework.Game

C#
public override void Update(GameTime gameTime)

gameTime Microsoft.Xna.Framework.GameTime

C#
public override void Draw(GameTime gameTime)

gameTime Microsoft.Xna.Framework.GameTime