MCLOverflowStrategy

enum MCLOverflowStrategy {}

An overflow strategy determines how a recording will handle new frames when the total surpasses the configured MCLRecordingConfig.maxFrames.

  • Keep only the last MCLRecordingConfig.maxFrames frames.

    This works well when the best part of the game is in the final moments.

    Declaration

    Objective-C

    kMCLOverflowStrategyLatest = 0

    Swift

    case latest = 0
  • Gradually speed up the recording when new frames arrive, making sure the entire segment from start to finish is included.

    This works well when it’s interesting to see how something evolved throughout the game, like a city in Sim City, or a drawing in a coloring book.

    Note that the actual max number of frames when using this strategy can vary between 1.33*maxFrames and 0.67*maxFrames.

    Declaration

    Objective-C

    kMCLOverflowStrategyTimelapse

    Swift

    case timelapse = 1
  • Include the part of the recording with the highest intensity as determined by calls to -[Megacool registerScoreChange].

    This works well when it’s not known up front when something interesting will happen, like in a first-person shooter. Set the MCLRecordingConfig.peakLocation to determine where in the recording the most intense point should be located.

    Declaration

    Objective-C

    kMCLOverflowStrategyHighlight

    Swift

    case highlight = 2