namespace MoonWorks
{
public enum FrameLimiterMode
{
///
/// The game will render at the maximum possible framerate that the computing resources allow.
/// Note that this may lead to overheating, resource starvation, etc.
///
Uncapped,
///
/// The game will render no more than the specified frames per second.
///
Capped
}
///
/// The Game's frame limiter setting. Specifies uncapped framerate or a maximum rendering frames per second value.
/// Note that this is separate from the Game's Update timestep and can be a different value.
///
public struct FrameLimiterSettings
{
public FrameLimiterMode Mode;
///
/// If Mode is set to Capped, this is the maximum frames per second that will be rendered.
///
public int Cap;
public FrameLimiterSettings(
FrameLimiterMode mode,
int cap
) {
Mode = mode;
Cap = cap;
}
}
}