# Frame counters that run once per logic pass and must advance per 60 Hz frame of game time when the game runs faster
# than 60 fps (scripts/fps_patch.py; notes/fps-research.md sections 6-8, findings 108, 113, 114).
# Found by the census (per-site hit counts with the frame rate alternating 60 <-> 120, evidence/fps-research), then read
# one by one: only clear timers are listed. Left out on purpose: list sizes and ring indexes rebuilt every frame,
# every-Nth-frame phase counters (mod 3 / cyclic reloads used for load balancing), the global frame number
# (0x7100992cdc / 0x71009923b4), and the UI and engine counters.
#
# <function> <store label> <kind> <comment>; kind int = the +/-1 that feeds the store moves by the frames due to the
# visit (finding 134: scripts/fps_patch.py recomps_fps_ci, per store label and field address); f1 = the +/-1.0
# operand of the float add that feeds the store is multiplied by them (recomps_fps_cf); f1op = the same, the label
# naming the add itself; f1lin = x = a x + 1.0 (a multiply, then the add): the recurrence runs once per frame due
# (recomps_fps_lmul / _lsum). The patcher checks each site: the value stepped is loaded from the stored field.

# player (Bayonetta's object)
7100026048 L_71000269f8 int  +0x4e14 countdown, stops at 0
7100026048 L_7100026a18 int  countdown, stops at 0
7100027754 L_7100027eb4 int  +0xfddc countdown, stops at 0
7100027754 L_7100028b04 int  +0x10a88 countdown, stops at 0
7100027754 L_71000287ac f1   +10432 float countdown (-1.0 while > 0)
7100034968 L_71000367e4 int  +0xee70 countdown, reloaded with 10
71000579d0 L_7100057a04 int  countdown, stops at 0
71000579d0 L_7100057a3c int  +0x4e48 countdown, stops at 0
71000579d0 L_7100057a58 int  countdown, stops at 0
71000579d0 L_7100057a74 int  countdown, stops at 0
71000579d0 L_7100057a90 int  countdown, stops at 0
71000579d0 L_7100057aac int  countdown, stops at 0

# enemies
710018a7fc L_710018a83c int  +15824 countdown, tested > 0
7100226fc4 L_7100227248 int  +4844 countdown, tested
71003c6a48 L_71003c6b7c int  +1536 countdown, stops at 0
710035f108 L_710035f8c4 f1op em0074 ShieldFloat: +1.0 per frame (the add itself: two paths join at the store)

# game systems
710093caec L_710093cb94 f1lin +2852 x = 0.9 x + 1.0 per frame (it approaches 10; finding 134, not a counter)
710093caec L_710093cb9c f1lin +2860 x = 0.9 x + 1.0 per frame (it approaches 10; finding 134, not a counter)
710093caec L_710093cba4 f1lin +2856 x = 0.9 x + 1.0 per frame (it approaches 10; finding 134, not a counter)
710093caec L_710093cbb0 f1lin +2864 x = 0.9 x + 1.0 per frame (it approaches 10; finding 134, not a counter)
71009786d4 L_710097898c f1   +12 +1.0 per frame (stage effect, pre_rocks_NM_height)
710098fc64 L_710098fdfc int  +288 frames alive
7100ae25a0 L_7100ae2784 int  +448 frames alive (enemy sound control, SE_EC_em*)
7100ae25a0 L_7100ae27c0 int  +716 countdown, stops at 0
7100ae25a0 L_7100ae27dc int  +720 countdown, stops at 0
7100af29fc L_7100af2d08 int  countdown, stops at 0 (core_ActLv)

# core game logic
7100b01ce8 L_7100b01ddc int  +84 countdown, stops at 0 (Witch Time end, State_FinishSlowOff)
7100b01ce8 L_7100b01dec int  +80 countdown, stops at 0 (same pass as +84; read, not measured)
7100b01ce8 L_7100b01e0c int  +48 countdown, stops at 0
7100b095b0 L_7100b09798 f1   +364 float countdown (-1.0 while > 0): the combo result display, 400 frames from 0x7100b0a678
7100b09058 L_7100b09188 f1   combo list (3 entries at +0 / +56 / +112): +20 timer, 180 when a row moves in, -1.0 per pass (finding 137)
7100b09058 L_7100b093ac f1   combo row 0: +188 timer, 180 when made and 60 per further hit (0x7100b09d8c), -1.0 per pass
7100b09058 L_7100b093e4 f1   combo row 1: +244 timer, the same
7100b09058 L_7100b09418 f1   combo row 2: +300 timer, the same; the combo ends when no row and no list entry is left
7100b610f8 L_7100b61124 int  global countdown, tested

# finding 139: timers that count once per pass, but only for a while after an event (a hit, a press, a state change);
# the census filed them as "contradicted" or never ran them (the review of its sites, notes/fps-research.md section 13)
# player
7100027754 L_7100028068 f1   +0x55b0 input window after the action button or a dodge (30.0)
7100027754 L_71000286a4 int  +0xee88 window after the action button is let go (30 while it is held)
7100027754 L_7100027c7c int  +0x10240 input lock (5)
7100027754 L_7100027e80 int  +0xffe8 hold-off of the TensionMax effect (30)
71000579d0 L_7100057a20 int  direction array entry 1 (+0x4e44, 22 after a push; six entries since finding 114)
71000579d0 L_7100057ac8 int  direction array entry 7 (+0x4e5c)
71000579d0 L_7100057dd8 int  +0x4e8c reset of the push repeat count (60)
# finding 154: the stick-motion windows of the same function. A push from neutral opens 10 frames for the next push
# (+0x4e64); a second push the same way sets +0x4e70, the opposite way +0x4e6c (10 frames each: the double tap and the
# back-forward pair that moves such as Tetsuzanko check); +0x4e80 = 5 frames after a push. At 120 fps per pass they
# lasted half as long, and those moves rarely came out.
71000579d0 L_7100057bd8 int  +0x4e80 window after a stick push (5)
71000579d0 L_7100057c38 int  +0x4e70 the same direction twice (10)
71000579d0 L_7100057c50 int  +0x4e6c opposite directions, back-forward (10)
71000579d0 L_7100057c6c int  +0x4e64 window for the next push (10)
# enemies, items, scenery
71009ebf04 L_71009ebfa8 int  enemy +0x427c full-speed hold after a weak-point hit (10 / 15 / 60)
71009ebf04 L_71009ec02c f1step enemy +0x4274 easing back into its scaled time (a per-difficulty step a frame)
7100ae25a0 L_7100ae26ec int  +408 global enemy action slot after the player's event (30)
7100ae25a0 L_7100ae26f8 int  +404 the same slot after an enemy took it (300)
71001ae09c L_71001ae184 int  AI class +1392: wait up to 120 (an up-counter)
71001ae220 L_71001ae260 int  the same class: wait up to 60 / 164
71001ae34c L_71001ae394 int  the same class: wait up to 59
7100192b08 L_7100195a04 int  mech +0x898c state wait (20 / 40); at 0 and below (L_7100195a48) only "< 0" is tested
71002a3538 L_71002a35ec f1   item / halo +2940 pickup hold-off after a break (20.0)
71009e8c28 L_71009e8c58 f1   breakable scenery +5512 shake (10.0)
# core / systems
7100ac88d4 L_7100ac8904 int  input latch +256 (10 after the button)
7100ac88d4 L_7100ac8910 int  input latch +260
7100ac88d4 L_7100ac8924 int  input latch +264
7100ac88d4 L_7100ac8930 int  input latch +268
7100af29fc L_7100af3bec int  core_ActLv +172 sound state
7100af29fc L_7100af3c14 int  core_ActLv +176
7100b01ce8 L_7100b01d80 int  +40 countdown that fires State_FinishSlowOff (Witch Time's end)
# hit-stop: the engine's time controller, the shared object update and the per-class delays (+1536, then 0x7100dd1978)
7100dd1ec8 L_7100dd1fb8 int  time controller +40: frames before its rate applies
7100dd1ec8 L_7100dd1fe0 int  time controller +36: frames at its rate (a hit-stop, a slow-down)
71009b0ea0 L_71009b0ed4 int  object +1532: frames at the rate after the +1536 delay
71000765b8 L_710007b79c int  +1536 hit-stop delay
71002d0210 L_71002d065c int  +1536 hit-stop delay
71002e4a98 L_71002e4bc8 int  +1536 hit-stop delay
71002ff9c8 L_71002ffc8c int  +1536 hit-stop delay
7100329e00 L_710032a148 int  +1536 hit-stop delay
710034165c L_71003416fc int  +1536 hit-stop delay
71003552e8 L_7100355388 int  +1536 hit-stop delay
710038feec L_71003903d4 int  +1536 hit-stop delay
710039c444 L_710039c78c int  +1536 hit-stop delay
71003ac81c L_71003ac94c int  +1536 hit-stop delay
71003f4978 L_71003f4aa8 int  +1536 hit-stop delay
71004162bc L_71004163ec int  +1536 hit-stop delay
7100429978 L_7100429a18 int  +1536 hit-stop delay
710044122c L_71004412cc int  +1536 hit-stop delay
7100458d2c L_7100458e5c int  +1536 hit-stop delay
7100474118 L_71004741b8 int  +1536 hit-stop delay
71004894e8 L_7100489588 int  +1536 hit-stop delay
7100491be8 L_7100491c88 int  +1536 hit-stop delay
71004a4634 L_71004a4764 int  +1536 hit-stop delay
71004c103c L_71004c11d0 int  +1536 hit-stop delay
71004e76d0 L_71004e7804 int  +1536 hit-stop delay
7100501760 L_7100501890 int  +1536 hit-stop delay
71005160f0 L_71005162b0 int  +1536 hit-stop delay
710052a318 L_710052a448 int  +1536 hit-stop delay
71005517e4 L_7100551884 int  +1536 hit-stop delay
710056bc50 L_710056c0a4 int  +1536 hit-stop delay
7100592348 L_7100592b90 int  +1536 hit-stop delay
71005a37d4 L_71005a3a1c int  +1536 hit-stop delay
71005aed90 L_71005aeec0 int  +1536 hit-stop delay
71005c01dc L_71005c027c int  +1536 hit-stop delay
71006103a4 L_7100610754 int  +1536 hit-stop delay
71006376f8 L_7100637798 int  +1536 hit-stop delay
710064a390 L_710064a7d8 int  +1536 hit-stop delay
7100665028 L_7100665370 int  +1536 hit-stop delay
7100682858 L_71006828f8 int  +1536 hit-stop delay
71006b02ec L_71006b038c int  +1536 hit-stop delay
71006ba568 L_71006ba608 int  +1536 hit-stop delay
71006cbe90 L_71006cbf30 int  +1536 hit-stop delay
71006d9948 L_71006d9cd8 int  +1536 hit-stop delay
71006e6514 L_71006e672c int  +1536 hit-stop delay
71006f6d24 L_71006f6dc4 int  +1536 hit-stop delay
710070283c L_71007028dc int  +1536 hit-stop delay
7100709f40 L_710070a100 int  +1536 hit-stop delay
710071b234 L_710071b2d4 int  +1536 hit-stop delay
710073c410 L_710073c5c8 int  +1536 hit-stop delay
7100752b64 L_7100752da4 int  +1536 hit-stop delay
7100777764 L_7100777d1c int  +1536 hit-stop delay
710078c100 L_710078c234 int  +1536 hit-stop delay
710079ba20 L_710079bbf8 int  +1536 hit-stop delay
71007a931c L_71007a93bc int  +1536 hit-stop delay
71009b1654 L_71009b16f0 int  +1536 hit-stop delay
7100a14d6c L_7100a14fa8 int  +1536 hit-stop delay
# combo manager & player combo/input buffers
7100b09058 L_7100b090b4 int  combo manager +400 move-repeat decay countdown, stops at 0
7100b0b0bc L_7100b0b118 int  combo manager +468 frame counter (up to 999)
7100026048 L_7100026a38 int  player +0x4e30 input buffer countdown, stops at 0
7100026048 L_7100026a6c int  player +0x4e20 input buffer countdown, stops at 0
7100026048 L_7100026db0 int  player +0x4e38 input buffer countdown, stops at 0
7100027754 L_7100028048 f1   player +0x55ac float countdown (-1.0 while > 0, sibling of +0x55b0)
# combo HUD & UI fixed -1/60 / +1/60 second-based timers (smooth fractional step)
7100bb7a30 L_7100bb837c fs v1 combo/HUD result hold timer #1 (-1/60 per pass)
7100bb7a30 L_7100bb839c fs v1 combo/HUD result hold timer #2 (0.5s, -1/60 per pass)
7100bb7a30 L_7100bb83bc fs v1 combo/HUD result hold timer #3 (0.167s, -1/60 per pass)
7100c8fa98 L_7100c8fb88 fs    ComboRow +400 timer/fade-out countdown (-1/60 per pass)
7100c907c4 L_7100c90964 fs    ComboTotal +416 score bank tally countdown (-1/60 per pass)
7100c90c48 L_7100c90ccc fs v1 ComboTotal +400 score roll-up timer (0.1s, -1/60 per pass)
710018db5c L_710018e184 fs    +0x89e8 float countdown (-1/60 per pass)
7100766208 L_71007662e8 fs    +1472 float countdown (-1/60 per pass)
7100c5ba64 L_7100c5bc58 fs v1 UI +1480 countdown (-1/60 per pass)
7100c5f924 L_7100c5fa84 fs v1 UI +1944 countdown (-1/60 per pass)
7100cbd828 L_7100cbd8c4 fs    UI +372 countdown (-1/60 per pass)
7100cdebac L_7100cdee6c fs    UI +372 countdown (-1/60 per pass)
7100cdf838 L_7100cdf87c fs    UI +420 countdown (-1/60 per pass)
7100ce5af4 L_7100ce5bb8 fs v1 UI +1932 countdown (-1/60 per pass)
7100ceae80 L_7100ceaec0 fs    UI +1924 countdown (-1/60 per pass)
7100cf0edc L_7100cf0f4c fs v8 UI +1900 countdown (-1/60 per pass)
7100cf4f68 L_7100cf502c fs    UI +2972 countdown (-1/60 per pass)
7100cfb490 L_7100cfb4d8 fs    UI +2964 countdown (-1/60 per pass)
7100cfbad4 L_7100cfbb10 fs    UI +2964 countdown (-1/60 per pass)
7100d0828c L_7100d083c0 fs    UI +0x44e4 countdown (-1/60 per pass)
7100d68e6c L_7100d690e8 fs    +340 timer (+1/60 per pass)
# Chapter Select 3D Card & UI animations (smooth fractional step)
7100601964 L_7100601998 fsop       Chapter Select Card +1456 idle bobbing phase (+1.0, wraps at 80.0)
7100601cac L_7100601cdc fs         Chapter Select Card bone +128 tilt-close (-5 deg/frame)
7100601d28 L_7100601d58 fs         Chapter Select Card bone +128 tilt-open (+5 deg/frame)
7100601da4 L_7100601ed0 fsop v1 x19 Chapter Select Card bone +132 spin rotation (+/-0.20 rad/frame)
7100601da4 L_7100601f0c fsop       Chapter Select Card +1444 highlight fade-in (+0.05/frame)
7100602204 L_710060227c fsop       Chapter Select Card +1444 highlight fade-out (-0.05/frame)
7100bbb0d8 L_7100bbb270 fs         UI +192 animation frame counter (+1.0 per pass)
7100c57028 L_7100c571b4 fs         UI +1612 repeat timer (-1.0 per pass, reloaded with 24.0)
7100ce3ab0 L_7100ce3ce4 fs         UI +340 continuous animation phase (wraps mod 3*v1)
