Fx2D
A C++20 2D rigid-body physics engine
Loading...
Searching...
No Matches
FxProfile Namespace Reference

Enumerations

enum  Slot : int {
  BroadPhase = 0 , NarrowPhase , PositionSolve , Constraints ,
  Integration , VelocityDerive , VelocityPasses , Bookkeeping ,
  StepTotal , SlotCount
}
 

Functions

bool enabled ()
 
const char * slot_name (Slot slot)
 
double ms (Slot slot)
 
std::size_t steps ()
 
void reset ()
 
void add (Slot slot, double elapsed_ms)
 
void count_step ()
 

Enumeration Type Documentation

◆ Slot

enum FxProfile::Slot : int
Enumerator
BroadPhase 
NarrowPhase 
PositionSolve 
Constraints 
Integration 
VelocityDerive 
VelocityPasses 
Bookkeeping 
StepTotal 
SlotCount 

Definition at line 10 of file Profile.h.

Function Documentation

◆ add()

void FxProfile::add ( Slot  slot,
double  elapsed_ms 
)

◆ count_step()

void FxProfile::count_step ( )

◆ enabled()

bool FxProfile::enabled ( )

◆ ms()

double FxProfile::ms ( Slot  slot)

◆ reset()

void FxProfile::reset ( )

◆ slot_name()

const char * FxProfile::slot_name ( Slot  slot)

◆ steps()

std::size_t FxProfile::steps ( )