# Frame pacing through the menus: the main menu (20 s), a Quick Race, back to the main menu (30 s), a
# second race, the main menu again (30 s); the phases are LOG lines, the frame rate is in the [status]
# lines (NFSU2_STATUS_EVERY=240 for one every 2 s).  A GPU that finishes a frame later than the game
# hands over the next one made Firefox fall to 20-30 fps in the menus and stay there (web/src/gpu/index.ts
# pokeLoop); /test/play.html?gpuburn=20000 makes a fast GPU that slow (~5 ms of work a frame on an
# RX 9070 XT at 2560x1440), and poke=0 brings the old behaviour back:
#   /test/play.html?...&script=/tests/web/scripts/pacing_menus.txt&gpuburn=20000&poke=0
0       waitfng UG_LS_Splash.fng 12000
+1000ms tapuntil RETURN MC_Background.fng 120 3000
+600ms  tapuntil RETURN GarageMain.fng 120 3000
+0      log menu_idle_1
+20000ms log menu_idle_1_end
+1500ms tapuntil RETURN UI_QRModeSelect.fng 240 3000
+800ms  tapuntil RETURN UI_QRTrackSelect.fng 240 3000
+800ms  tapuntil RETURN UI_QRModeOptions.fng 240 3000
+800ms  tapuntil RETURN UI_QRCarSelect.fng 240 3000
+800ms  tapuntil RETURN GenericDialog_SMALL.fng 240 3000
+800ms  tapuntil RETURN PC_Loading.fng 240 3000
+0    waitmem 0x8654a4 6 6000
+0    log race_1
+7000ms down UP
+25000ms up UP
+0    log race_1_quit
+0    tap ESCAPE
+120  tap RIGHT
+30   tap RIGHT
+30   tap RIGHT
+30   tap RIGHT
+30   tap RIGHT
+30   tap RIGHT
+60   tap RETURN
+120  tap LEFT
+60   tap RETURN
+0    waitfng GarageMain.fng 3000
+0    log menu_idle_2
+30000ms log menu_idle_2_end
+0    tapuntil ESCAPE UI_Main.fng 150 2400
+300  tap LEFT
+40   tap LEFT
+40   tap LEFT
+40   tap LEFT
+40   tap LEFT
+40   tap LEFT
+40   tap LEFT
+40   tap RIGHT
+90   tapuntil RETURN UI_QRModeSelect.fng 150 3000
+200  tap LEFT
+20   tap LEFT
+20   tap LEFT
+20   tap LEFT
+20   tap LEFT
+20   tap LEFT
+60   tapuntil RETURN PC_Loading.fng 120 4000
+0    waitmem 0x8654a4 6 6000
+0    log race_2
+7000ms down UP
+20000ms up UP
+0    log race_2_quit
+0    tap ESCAPE
+120  tap RIGHT
+30   tap RIGHT
+30   tap RIGHT
+30   tap RIGHT
+30   tap RIGHT
+30   tap RIGHT
+60   tap RETURN
+120  tap LEFT
+60   tap RETURN
+0    waitfng GarageMain.fng 3000
+0    log menu_idle_3
+30000ms log menu_idle_3_end
+0   quit
