OmniNX/varients/oc/SaltySD/plugins/FPSLocker/patches/010039A00BC64000/77009C1234634A4E.yaml
2026-02-03 17:42:58 +01:00

40 lines
No EOL
960 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]]
]