Skip to content

RateLimiter

Public Functions

Name
RateLimiter() =default
void setTargetFrameRate(float targetFrameRate)
void reset()
float getTargetFrameRate() const
bool shouldProcess(std::chrono::milliseconds timestamp, bool commit =true)
float getActualFPS() const
float getInputFPS() const
float getTargetFPS() const

Public Functions Documentation

function RateLimiter

RateLimiter() =default

function setTargetFrameRate

void setTargetFrameRate(
    float targetFrameRate
)

function reset

void reset()

function getTargetFrameRate

float getTargetFrameRate() const

function shouldProcess

bool shouldProcess(
    std::chrono::milliseconds timestamp,
    bool commit =true
)

function getActualFPS

float getActualFPS() const

function getInputFPS

float getInputFPS() const

function getTargetFPS

float getTargetFPS() const