Description
The MaxFrameRateInactive
property of the RenderSettings
class specifies the maximum frame rate that the application should target when it is not the active window. This can help reduce resource usage when the application is running in the background.
Usage
To use the MaxFrameRateInactive
property, you can get or set its value to control the frame rate when the application is inactive. This property is useful for optimizing performance and resource consumption when the application is not in focus.
Example usage:
RenderSettings settings = new RenderSettings();
settings.MaxFrameRateInactive = 30; // Set the max frame rate to 30 FPS when inactive
int currentMaxFrameRateInactive = settings.MaxFrameRateInactive; // Retrieve the current setting
Example
RenderSettings settings = new RenderSettings();
settings.MaxFrameRateInactive = 30; // Set the max frame rate to 30 FPS when inactive
int currentMaxFrameRateInactive = settings.MaxFrameRateInactive; // Retrieve the current setting