Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
foray::base::AppFrameTiming Class Reference

Controls an apps render scheduling timing. More...

#include <foray_renderloop.hpp>

Public Member Functions

void SetFramesPerSecond (float value)
 Set the target render calls per second.
 
void SetSecondsPerFrame (float value)
 Set the target time per frame.
 
float GetFramesPerSecond () const
 Gets target frames per second.
 
float GetSecondsPerFrame () const
 Gets target seconds per frame.
 
void Set60Fps ()
 Sets the target Fps to 60 (0.166667 seconds per frame)
 
void DisableFpsLimit ()
 Disables the Fps limit.
 

Protected Attributes

fp32_t mSecondsPerFrame = 1.f / 60.f
 

Detailed Description

Controls an apps render scheduling timing.

Member Function Documentation

◆ DisableFpsLimit()

void foray::base::AppFrameTiming::DisableFpsLimit ( )
inline

Disables the Fps limit.

◆ GetFramesPerSecond()

float foray::base::AppFrameTiming::GetFramesPerSecond ( ) const
inline

Gets target frames per second.

◆ GetSecondsPerFrame()

float foray::base::AppFrameTiming::GetSecondsPerFrame ( ) const
inline

Gets target seconds per frame.

◆ Set60Fps()

void foray::base::AppFrameTiming::Set60Fps ( )
inline

Sets the target Fps to 60 (0.166667 seconds per frame)

◆ SetFramesPerSecond()

void foray::base::AppFrameTiming::SetFramesPerSecond ( float  value)
inline

Set the target render calls per second.

◆ SetSecondsPerFrame()

void foray::base::AppFrameTiming::SetSecondsPerFrame ( float  value)
inline

Set the target time per frame.

Member Data Documentation

◆ mSecondsPerFrame

fp32_t foray::base::AppFrameTiming::mSecondsPerFrame = 1.f / 60.f
protected

The documentation for this class was generated from the following file: