C# Class SpaceSim.Drawing.FpsManager

Keeps the game loop running at a specified FPS by spin waits.
Exibir arquivo Open project: zlynn1990/SpaceSim Class Usage Examples

Public Methods

Method Description
FinishFrame ( ) : void
FpsManager ( int targetFps ) : System.Diagnostics
StartFrame ( ) : void

Private Methods

Method Description
SpinWait ( long ticks ) : void

Method Details

FinishFrame() public method

public FinishFrame ( ) : void
return void

FpsManager() public method

public FpsManager ( int targetFps ) : System.Diagnostics
targetFps int
return System.Diagnostics

StartFrame() public method

public StartFrame ( ) : void
return void