mirror of
https://github.com/Ultra-NX/UltraNX.git
synced 2025-12-13 18:33:55 +00:00
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
# Red Faction Guerrilla Re-Mars-tered 1.0.0
|
|
# BID: F1D71307616AB7E4
|
|
# I am editing DR math to use GPU time instead of CPU time which relies on that we never hit display refresh rate
|
|
|
|
DECLARATIONS:
|
|
-
|
|
type: variable
|
|
name: dr_frametime_max
|
|
value_type: float
|
|
default_value: 0.03448276
|
|
evaluate: "(1 / FPS_TARGET) - 0.0001"
|
|
-
|
|
type: variable
|
|
name: dr_frametime_min
|
|
value_type: float
|
|
default_value: 0.033333333
|
|
evaluate: "0.9 / FPS_TARGET"
|
|
MASTER_WRITE:
|
|
-
|
|
type: asm_a64
|
|
main_offset: 0x119A20
|
|
instructions: [
|
|
[nop]
|
|
]
|
|
-
|
|
type: asm_a64
|
|
main_offset: 0x119A30
|
|
instructions: [
|
|
[adrp, x9, $dr_frametime_max],
|
|
[ldr, s2, [x22, 0x14]],
|
|
[ldr, s3, [x9, $dr_frametime_max]]
|
|
]
|
|
-
|
|
type: asm_a64
|
|
main_offset: 0x119A7C
|
|
instructions: [
|
|
[nop],
|
|
[nop],
|
|
[nop],
|
|
[nop],
|
|
[nop]
|
|
]
|
|
-
|
|
type: asm_a64
|
|
main_offset: 0x119A98
|
|
instructions: [
|
|
[adrp, x9, $dr_frametime_min],
|
|
[ldr, s0, [x22, 0x14]],
|
|
[ldr, s1, [x9, $dr_frametime_min]]
|
|
] |