Mercurial > repos > blastem
comparison event_log.h @ 1956:275f1c4bdb25
Netplay protocol size optimization
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 01 May 2020 23:39:45 -0700 |
parents | c36102d09351 |
children | ba06346611a1 |
comparison
equal
deleted
inserted
replaced
1955:1c7af12efe8b | 1956:275f1c4bdb25 |
---|---|
11 EVENT_VRAM_BYTE_DELTA = 6, | 11 EVENT_VRAM_BYTE_DELTA = 6, |
12 EVENT_VRAM_BYTE_ONE = 7, | 12 EVENT_VRAM_BYTE_ONE = 7, |
13 EVENT_VRAM_BYTE_AUTO = 8, | 13 EVENT_VRAM_BYTE_AUTO = 8, |
14 EVENT_VRAM_WORD = 9, | 14 EVENT_VRAM_WORD = 9, |
15 EVENT_VRAM_WORD_DELTA = 10, | 15 EVENT_VRAM_WORD_DELTA = 10, |
16 EVENT_CRAM = 11, | 16 EVENT_VDP_INTRAM = 11, |
17 EVENT_VSRAM = 12, | 17 EVENT_STATE = 12, |
18 EVENT_STATE = 13 | 18 EVENT_MULTI = 13 |
19 //14 and 15 are reserved for header types | 19 //14 and 15 are reserved for header types |
20 }; | 20 }; |
21 | 21 |
22 #include "serialize.h" | 22 #include "serialize.h" |
23 typedef struct { | 23 typedef struct { |
24 size_t storage; | 24 size_t storage; |
25 int socket; | 25 int socket; |
26 uint32_t last_cycle; | 26 uint32_t last_cycle; |
27 uint32_t last_word_address; | 27 uint32_t last_word_address; |
28 uint32_t last_byte_address; | 28 uint32_t last_byte_address; |
29 uint32_t repeat_delta; | |
29 deserialize_buffer buffer; | 30 deserialize_buffer buffer; |
31 uint8_t repeat_event; | |
32 uint8_t repeat_remaining; | |
30 } event_reader; | 33 } event_reader; |
31 | 34 |
32 #include "system.h" | 35 #include "system.h" |
33 #include "render.h" | 36 #include "render.h" |
34 | 37 |