# Oceanhorn 2: Knights of the Lost Realm 1.2
# BID: 9F2F187D1C6E44EC

unsafeCheck: true

ALL_FPS:
  # r.DynamicRes.FrameTimeBudget
  -
    type: evaluate_write
    address: [MAIN, 0x51E80D8, 0]
    value_type: float
    value: ["TruncDec(FRAMETIME_TARGET * 0.963, 1)", "TruncDec(FRAMETIME_TARGET * 0.963, 1)"]
  # t.MaxFPS
  -
    type: evaluate_write
    address: [MAIN, 0x52122E0, 0]
    value_type: float
    value: [FPS_LOCK_TARGET, FPS_LOCK_TARGET]
  # r.VSync
  -
    type: write
    address: [MAIN, 0x467DE48, 0]
    value_type: uint32
    value: [0, 0]
  -
    type: block
    what: timing
