UltraNX/SaltySD/plugins/FPSLocker/patches/010027400CDC6000/4979B200D53BB282.yaml
2024-07-02 12:50:28 +03:00

30 lines
728 B
YAML

# Divinity Original Sin 2 1.0.10
# BID: 4979B200D53BB282
# Game is using double buffer, buffers are not allocated in loop.
# So it's not possible to get stable FPS lock between 30 and 60 without changing refresh rate.
unsafeCheck: true
MASTER_WRITE:
# Change location of GPU frametime double divider to MAIN+0x32C6D00
-
type: bytes
main_offset: 0x921768
value_type: uint32
value:
- 0xB0014D28
- 0xFD468101
# Default value
-
type: bytes
main_offset: 0x32C6D00
value_type: double
value: 1000000
ALL_FPS:
# GPU Frametime divider = (30/FPS) * 1000000
-
type: evaluate_write
address: [MAIN, 0x32C6D00]
value_type: double
value: "(30 / FPS_TARGET) * 1000000"