2025-12-09 08:14:28 +03:00

40 lines
921 B
YAML

# Wasteland 2: Director's Cut 1.0.1
# BID: 77009C1234634A4E
DECLARATIONS:
# Dynamic resolution is botched because it relies on whole frame rendering loop time,
# which means we cannot set min to 60 FPS because otherwise it will never get back to higher resolutions
-
type: variable
name: dr_fps_min
value_type: float
default_value: 20
evaluate: "0.9 * FPS_TARGET"
-
type: variable
name: dr_fps_max
value_type: float
default_value: 33
evaluate: "FPS_TARGET"
-
type: code
name: getDrFpsTargetMin
instructions: [
[adrp, x20, $dr_fps_min],
[ldr, s1, [x20, $dr_fps_min]],
[ret]
]
MASTER_WRITE:
-
type: asm_a64
main_offset: 0x36EE98
instructions: [
[bl, _getDrFpsTargetMin()]
]
-
type: asm_a64
main_offset: 0x36EEF4
instructions: [
[adrp, x8, $dr_fps_max],
[ldr, s1, [x8, $dr_fps_max]]
]