# Spyro Reignited Trilogy 1.01
# BID: D2775FAFCF4835CB

unsafeCheck: false

15FPS:
  # Disable bSmoothFrameRate and bUseFixedFrameRate to untie game speed from framerate
  -
    type: write
    address: [MAIN, 0x69DA1A8, 0x778]
    value_type: uint32
    # Default is 0x67, bSmoothFrameRate |= 0x20, bUseFixedFrameRate |= 0x40 
    # By writing 7 we are making sure that other flags are maintained: 
    # bAllowMultiThreadedAnimationUpdate |= 4
    # bOptimizeAnimBlueprintMemberVariableAccess |= 2
    # bCanBlueprintsTickByDefault |= 1
    value: 7
  # r.DynamicRes.FrameTimeBudget (1000/FPS) cutted to 1 decimal
  -
    type: write
    address: [MAIN, 0x69B6780, 0]
    value_type: float
    value: [66.6, 66.6]
  # t.MaxFPS
  -
    type: write
    address: [MAIN, 0x69DAC78, 0]
    value_type: float
    value: [15, 15]
  -
    type: block
    what: timing
20FPS:
  # Disable bSmoothFrameRate and bUseFixedFrameRate
  -
    type: write
    address: [MAIN, 0x69DA1A8, 0x778]
    value_type: uint32
    value: 7
  # r.DynamicRes.FrameTimeBudget
  -
    type: write
    address: [MAIN, 0x69B6780, 0]
    value_type: float
    value: [50, 50]
  # t.MaxFPS
  -
    type: write
    address: [MAIN, 0x69DAC78, 0]
    value_type: float
    value: [20, 20]
  -
    type: block
    what: timing
25FPS:
  # Disable bSmoothFrameRate and bUseFixedFrameRate
  -
    type: write
    address: [MAIN, 0x69DA1A8, 0x778]
    value_type: uint32
    value: 7
  # r.DynamicRes.FrameTimeBudget
  -
    type: write
    address: [MAIN, 0x69B6780, 0]
    value_type: float
    value: [40, 40]
  # t.MaxFPS
  -
    type: write
    address: [MAIN, 0x69DAC78, 0]
    value_type: float
    value: [25, 25]
  -
    type: block
    what: timing
30FPS:
  # Disable bSmoothFrameRate and bUseFixedFrameRate
  -
    type: write
    address: [MAIN, 0x69DA1A8, 0x778]
    value_type: uint32
    value: 7
  # r.DynamicRes.FrameTimeBudget (default value)
  -
    type: write
    address: [MAIN, 0x69B6780, 0]
    value_type: float
    value: [33.3, 33.3]
  # t.MaxFPS (default value)
  -
    type: write
    address: [MAIN, 0x69DAC78, 0]
    value_type: float
    value: [0, 0]
35FPS:
  # Disable bSmoothFrameRate and bUseFixedFrameRate
  -
    type: write
    address: [MAIN, 0x69DA1A8, 0x778]
    value_type: uint32
    value: 7
  # r.DynamicRes.FrameTimeBudget
  -
    type: write
    address: [MAIN, 0x69B6780, 0]
    value_type: float
    value: [28.5, 28.5]
  # t.MaxFPS
  -
    type: write
    address: [MAIN, 0x69DAC78, 0]
    value_type: float
    value: [35, 35]
  -
    type: block
    what: timing
40FPS:
  # Disable bSmoothFrameRate and bUseFixedFrameRate
  -
    type: write
    address: [MAIN, 0x69DA1A8, 0x778]
    value_type: uint32
    value: 7
  # r.DynamicRes.FrameTimeBudget
  -
    type: write
    address: [MAIN, 0x69B6780, 0]
    value_type: float
    value: [25, 25]
  # t.MaxFPS
  -
    type: write
    address: [MAIN, 0x69DAC78, 0]
    value_type: float
    value: [40, 40]
  -
    type: block
    what: timing
45FPS:
  # Disable bSmoothFrameRate and bUseFixedFrameRate
  -
    type: write
    address: [MAIN, 0x69DA1A8, 0x778]
    value_type: uint32
    value: 7
  # r.DynamicRes.FrameTimeBudget
  -
    type: write
    address: [MAIN, 0x69B6780, 0]
    value_type: float
    value: [22.2, 22.2]
  # t.MaxFPS
  -
    type: write
    address: [MAIN, 0x69DAC78, 0]
    value_type: float
    value: [45, 45]
  -
    type: block
    what: timing
50FPS:
  # Disable bSmoothFrameRate and bUseFixedFrameRate
  -
    type: write
    address: [MAIN, 0x69DA1A8, 0x778]
    value_type: uint32
    value: 7
  # r.DynamicRes.FrameTimeBudget
  -
    type: write
    address: [MAIN, 0x69B6780, 0]
    value_type: float
    value: [20, 20]
  # t.MaxFPS
  -
    type: write
    address: [MAIN, 0x69DAC78, 0]
    value_type: float
    value: [50, 50]
  -
    type: block
    what: timing
55FPS:
  # Disable bSmoothFrameRate and bUseFixedFrameRate
  -
    type: write
    address: [MAIN, 0x69DA1A8, 0x778]
    value_type: uint32
    value: 7
  # r.DynamicRes.FrameTimeBudget
  -
    type: write
    address: [MAIN, 0x69B6780, 0]
    value_type: float
    value: [18.1, 18.1]
  # t.MaxFPS
  -
    type: write
    address: [MAIN, 0x69DAC78, 0]
    value_type: float
    value: [55, 55]
  -
    type: block
    what: timing
60FPS:
  # Disable bSmoothFrameRate and bUseFixedFrameRate
  -
    type: write
    address: [MAIN, 0x69DA1A8, 0x778]
    value_type: uint32
    value: 7
  # r.DynamicRes.FrameTimeBudget
  -
    type: write
    address: [MAIN, 0x69B6780, 0]
    value_type: float
    value: [16.6, 16.6]
  # t.MaxFPS (default value)
  -
    type: write
    address: [MAIN, 0x69DAC78, 0]
    value_type: float
    value: [0, 0]
