# Dying Light: Platinum Edition 1.0.5
# BID: 8C93B930348C9787

unsafeCheck: true

MASTER_WRITE:
  # Disable Dynamic GPU Clocks
  -
    type: bytes
    main_offset: 0x1DE89CC
    value_type: uint32
    value: 
      - 0xD503201F
  # Redirect Dynamic Resolution Timings to MAIN+0x4113D00
  -
    type: bytes
    main_offset: 0x1DE89A8
    value_type: uint32
    value: 
      - 0xF001194A
      - 0xB94D014A
  -
    type: bytes
    main_offset: 0x1DE8A08
    value_type: uint32
    value: 
      - 0xF001194A
      - 0xB94D054A
  -
    type: bytes
    main_offset: 0x1DE80C8
    value_type: uint32
    value: 
      - 0xF001194B
      - 0xB94D096C
      - 0xB94D0D6B
      - 0xD503201F
  -
    type: bytes
    main_offset: 0x1DE80F8
    value_type: uint32
    value: 
      - 0xF001194B
      - 0xB94D116B
# Write default values
  # MAIN + 0x1DE89AC
  -
    type: bytes
    main_offset: 0x4113D00
    value_type: float
    value: 0.034
  # MAIN + 0x1DE8A0C
  -
    type: bytes
    main_offset: 0x4113D04
    value_type: float
    value: 0.028
  # MAIN + 0x1DE80D4
  -
    type: bytes
    main_offset: 0x4113D08
    value_type: float
    value: 0.0289855
  # MAIN + 0x1DE80D0
  -
    type: bytes
    main_offset: 0x4113D0C
    value_type: float
    value: 0.0263158
  # MAIN + 0x1DE80D0
  -
    type: bytes
    main_offset: 0x4113D10
    value_type: float
    value: 0.0324675
ALL_FPS:
  -
    type: evaluate_write
    address: [MAIN, 0x4113D00]
    value_type: float
    value: ["(1 / FPS_TARGET) * 1.02", "(1 / FPS_TARGET) * 0.84", "(1 / FPS_TARGET) * 0.87", "(1 / FPS_TARGET) * 0.79", "(1 / FPS_TARGET) * 0.974"]
