epicmeme546
4b113178e8
Let one replay worker record each long run of draws from a copy of the replay state, behind NX2NAVI_REPLAY_WORKERS.
...
Stage 1 of recording a submission on several threads. A submission's draws come in runs between ops that have to
stay in the replay's order on its own thread (dispatches, copies, texture and buffer clears, events, the game's
barriers, calls). With NX2NAVI_REPLAY_WORKERS=1 a run of 16 draws or more is recorded by a worker thread: it takes a
copy of the replay state, records the run into a command buffer of its own pool with a draw context of its own, ends
it behind a full barrier and hands the state back. vk_sync_append puts that command buffer into the part between the
replay's own pieces before and after it, so the GPU runs everything in the op stream's order. The submitting thread
waits for each run, so every side effect keeps the replay's order; this stage checks that a run recorded apart from
a copy of the state gives the same pictures. The default, 0, replays as before.
walk's handling of the ops that do not steer it moves into op_one, which the worker uses too. NX2NAVI_REPLAY_RUNS=1
logs every 600 frames how the draws fall into such runs and which ops break them. The draw replay's hot functions load
their recording context once instead of at every use.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-11 16:06:18 -05:00
..
2026-11-11 00:39:50 -05:00
2026-11-11 08:18:55 -05:00
2026-11-11 15:06:30 -05:00
2026-11-11 08:18:01 -05:00
2026-11-11 15:06:30 -05:00
2026-11-11 00:39:50 -05:00
2026-11-10 23:16:17 -05:00
2026-11-07 05:04:38 -05:00
2026-11-07 05:04:38 -05:00
2026-11-11 04:48:36 -05:00
2026-11-10 22:59:02 -05:00
2026-11-09 08:19:19 -05:00
2026-11-07 05:04:40 -05:00
2026-11-07 05:04:40 -05:00
2026-11-10 00:21:31 -05:00
2026-11-07 05:04:40 -05:00
2026-11-07 05:04:40 -05:00
2026-11-10 01:55:30 -05:00
2026-11-10 00:21:31 -05:00
2026-11-11 00:40:20 -05:00
2026-11-11 00:39:50 -05:00
2026-11-11 00:20:22 -05:00
2026-11-10 15:14:25 -05:00
2026-11-11 16:06:18 -05:00
2026-11-11 00:11:41 -05:00
2026-11-09 08:09:25 -05:00
2026-11-07 05:04:38 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 00:20:22 -05:00
2026-11-07 05:04:40 -05:00
2026-11-11 13:19:24 -05:00
2026-11-11 12:53:59 -05:00
2026-11-08 01:25:12 -05:00
2026-11-09 09:10:36 -05:00
2026-11-11 04:35:30 -05:00
2026-11-11 04:35:30 -05:00
2026-11-07 05:04:38 -05:00
2026-11-09 03:34:46 -05:00
2026-11-10 10:00:18 -05:00
2026-11-07 05:04:39 -05:00
2026-11-07 05:04:40 -05:00
2026-11-09 13:13:43 -05:00
2026-11-09 13:13:43 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 08:18:01 -05:00
2026-11-11 00:40:20 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 14:06:16 -05:00
2026-11-09 23:42:12 -05:00
2026-11-11 15:06:30 -05:00
2026-11-08 00:34:29 -05:00
2026-11-09 08:09:26 -05:00
2026-11-11 05:58:42 -05:00
2026-11-07 05:04:38 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 00:11:41 -05:00
2026-11-07 05:04:38 -05:00
2026-11-11 05:58:42 -05:00
2026-11-10 23:24:12 -05:00
2026-11-11 14:06:16 -05:00
2026-11-07 05:04:40 -05:00
2026-11-09 08:21:07 -05:00
2026-11-09 08:21:07 -05:00
2026-11-09 08:21:07 -05:00
2026-11-10 12:48:50 -05:00
2026-11-10 12:48:50 -05:00
2026-11-09 03:34:46 -05:00
2026-11-07 05:04:38 -05:00
2026-11-09 03:34:46 -05:00
2026-11-07 05:04:38 -05:00
2026-11-07 05:04:38 -05:00
2026-11-11 07:47:08 -05:00
2026-11-11 02:36:54 -05:00
2026-11-11 00:39:50 -05:00
2026-11-07 05:04:40 -05:00
2026-11-09 21:54:40 -05:00
2026-11-10 23:16:17 -05:00
2026-11-11 00:39:08 -05:00
2026-11-09 20:48:10 -05:00
2026-11-07 05:04:40 -05:00
2026-11-10 10:26:51 -05:00
2026-11-10 10:26:51 -05:00
2026-11-11 06:01:39 -05:00
2026-11-11 04:48:36 -05:00
2026-11-11 14:06:16 -05:00
2026-11-11 00:39:08 -05:00
2026-11-07 09:26:51 -05:00
2026-11-10 23:14:00 -05:00
2026-11-08 15:51:48 -05:00
2026-11-07 05:04:40 -05:00
2026-11-11 05:58:43 -05:00
2026-11-11 05:58:32 -05:00
2026-11-11 05:58:32 -05:00
2026-11-08 15:51:48 -05:00
2026-11-09 08:09:25 -05:00
2026-11-08 15:51:48 -05:00
2026-11-07 05:04:40 -05:00
2026-11-11 02:36:54 -05:00
2026-11-11 00:39:58 -05:00
2026-11-07 05:04:40 -05:00
2026-11-07 18:03:20 -05:00
2026-11-07 05:04:38 -05:00
2026-11-07 05:04:38 -05:00
2026-11-10 19:51:36 -05:00
2026-11-11 08:58:00 -05:00
2026-11-11 09:30:37 -03:00
2026-11-10 22:35:29 -05:00
2026-11-08 15:51:47 -05:00
2026-11-07 05:04:40 -05:00
2026-11-08 15:51:47 -05:00
2026-11-07 05:04:40 -05:00
2026-11-08 15:51:47 -05:00
2026-11-07 05:04:39 -05:00
2026-11-07 05:04:39 -05:00
2026-11-07 05:04:40 -05:00
2026-11-07 05:04:40 -05:00
2026-11-07 05:04:40 -05:00
2026-11-07 05:04:38 -05:00
2026-11-09 08:54:25 -05:00
2026-11-08 15:51:48 -05:00
2026-11-07 05:04:38 -05:00
2026-11-10 22:59:02 -05:00
2026-11-07 13:31:07 -05:00
2026-11-11 08:04:19 -05:00
2026-11-07 05:04:40 -05:00
2026-11-10 01:55:27 -05:00
2026-11-07 05:04:40 -05:00
2026-11-09 13:13:43 -05:00
2026-11-09 02:40:51 -05:00
2026-11-10 23:24:34 -05:00
2026-11-09 02:40:51 -05:00
2026-11-11 08:04:19 -05:00
2026-11-11 00:39:08 -05:00
2026-11-10 06:35:28 -05:00
2026-11-10 06:35:28 -05:00
2026-11-09 08:20:32 -05:00
2026-11-09 08:20:01 -05:00
2026-11-11 04:36:33 -05:00
2026-11-07 05:04:38 -05:00
2026-11-10 01:55:28 -05:00
2026-11-07 05:04:38 -05:00
2026-11-07 05:04:38 -05:00
2026-11-07 05:04:40 -05:00
2026-11-11 00:39:08 -05:00
2026-11-09 11:22:38 -05:00
2026-11-10 23:16:17 -05:00
2026-11-10 23:16:17 -05:00
2026-11-11 00:20:22 -05:00
2026-11-09 13:13:43 -05:00
2026-11-09 13:13:43 -05:00
2026-11-09 13:13:43 -05:00
2026-11-07 05:04:38 -05:00
2026-11-07 05:04:38 -05:00
2026-11-07 05:04:40 -05:00
2026-11-07 05:04:40 -05:00
2026-11-11 00:40:20 -05:00
2026-11-07 05:04:38 -05:00
2026-11-07 05:04:38 -05:00
2026-11-07 05:04:40 -05:00
2026-11-07 05:04:38 -05:00
2026-11-11 00:20:22 -05:00
2026-11-07 05:04:38 -05:00
2026-11-07 05:04:38 -05:00
2026-11-07 05:04:40 -05:00
2026-11-07 05:04:40 -05:00
2026-11-11 12:18:52 -05:00
2026-11-07 05:04:40 -05:00
2026-11-11 15:06:30 -05:00
2026-11-11 15:06:30 -05:00
2026-11-07 05:04:38 -05:00
2026-11-11 04:48:36 -05:00
2026-11-11 07:47:08 -05:00
2026-11-11 04:42:07 -05:00
2026-11-11 04:29:31 -05:00
2026-11-11 00:39:50 -05:00
2026-11-09 03:34:46 -05:00
2026-11-09 03:34:46 -05:00
2026-11-09 21:10:23 -05:00
2026-11-11 08:58:48 -05:00
2026-11-11 12:53:59 -05:00
2026-11-10 07:31:55 -05:00
2026-11-10 23:14:00 -05:00
2026-11-10 23:14:00 -05:00
2026-11-10 06:24:56 -05:00
2026-11-11 16:06:18 -05:00
2026-11-11 04:35:30 -05:00
2026-11-11 08:58:00 -05:00
2026-11-11 16:06:18 -05:00
2026-11-11 16:06:18 -05:00
2026-11-11 04:49:01 -05:00
2026-11-11 12:33:36 -05:00
2026-11-11 12:33:36 -05:00
2026-11-11 12:33:36 -05:00
2026-11-11 05:18:48 -05:00
2026-11-11 08:18:01 -05:00
2026-11-11 05:18:48 -05:00
2026-11-07 05:04:40 -05:00
2026-11-09 03:34:46 -05:00
2026-11-11 06:10:09 -05:00
2026-11-09 03:34:46 -05:00
2026-11-11 15:06:30 -05:00
2026-11-11 08:18:55 -05:00
2026-11-11 14:06:16 -05:00
2026-11-11 05:58:42 -05:00
2026-11-11 05:58:42 -05:00
2026-11-07 05:04:38 -05:00
2026-11-07 05:04:38 -05:00
2026-11-07 05:04:38 -05:00
2026-11-11 06:10:09 -05:00
2026-11-11 05:58:42 -05:00
2026-11-11 05:58:42 -05:00
2026-11-11 05:25:38 -05:00
2026-11-11 16:06:18 -05:00
2026-11-10 12:14:29 -05:00
2026-11-11 14:37:11 -05:00
2026-11-09 03:34:46 -05:00
2026-11-10 23:27:51 -05:00
2026-11-07 05:04:38 -05:00
2026-11-10 09:13:35 -05:00
2026-11-11 16:06:18 -05:00
2026-11-10 15:20:47 -05:00
2026-11-10 09:12:33 -05:00