feat(diagnostics): correlate movement acknowledgements with painted views

This commit is contained in:
2026-09-09 22:12:12 +03:00
parent 3827ba7ec7
commit 37704028c5
5 changed files with 389 additions and 14 deletions
+3 -2
View File
@@ -767,8 +767,9 @@ static void handle_game_command(maze32_gateway_t* gateway, const maze32_session_
append_json_string(acknowledgement, sizeof(acknowledgement), &length,
message->request_id) &&
(written = snprintf(prefix, sizeof(prefix),
",\"payload\":{\"commandSequence\":%" PRIu32 "}}", command_sequence)) >=
0 &&
",\"payload\":{\"commandSequence\":%" PRIu32
",\"stateSequence\":%" PRIu32 "}}",
command_sequence, gateway->game.state_sequence)) >= 0 &&
(size_t)written < sizeof(prefix) &&
append_text(acknowledgement, sizeof(acknowledgement), &length, prefix)) {
enqueue(gateway, session->connection_id, acknowledgement);