SuperpoweredSDK  v2.0.2
Superpowered Audio SDK
Superpowered::CPU Class Reference

Utility class to keep the CPU running near the maximum frequency for all cores ("sustained performance mode"). More...

#include "SuperpoweredCPU.h"

Static Public Member Functions

static bool getSustainedPerformanceMode ()
 
static void setSustainedPerformanceMode (bool enable)
 Enable/disable the sustained performance mode. More...
 

Detailed Description

Utility class to keep the CPU running near the maximum frequency for all cores ("sustained performance mode").

Useful for pro audio applications to prevent audio dropouts, in both foreground and background states. Use this primarily on mobile devices. Supports:

  • all versions of iOS and Android,
  • ARM and X86 CPUs,
  • any number of CPU cores,
  • CPUs with multiple different cores. CPU monitors will report higher CPU usage if sustained performance mode is enabled. But the increased CPU usage is "fake", because this feature is achieved with NOP operations.

Member Function Documentation

◆ getSustainedPerformanceMode()

static bool Superpowered::CPU::getSustainedPerformanceMode ( )
static
Returns
Indicates if sustained performance mode is enabled or disabled.

◆ setSustainedPerformanceMode()

static void Superpowered::CPU::setSustainedPerformanceMode ( bool  enable)
static

Enable/disable the sustained performance mode.

This method is thread-safe.

Parameters
enableEnable/disable the sustained performance mode.

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