From b31a9b47266bf4ea531cd43f96dc2e666948f175 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Fri, 8 May 2020 11:40:30 -0700 Subject: Add an event log soft flush and call it twice per frame in between hard flushes to netplay latency when there are insufficient hardware updates to flush packets in the middle of a frame --- genesis.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'genesis.h') diff --git a/genesis.h b/genesis.h index 9070cc6..8418113 100644 --- a/genesis.h +++ b/genesis.h @@ -51,6 +51,9 @@ struct genesis_context { uint32_t int_latency_prev1; uint32_t int_latency_prev2; uint32_t reset_cycle; + uint32_t last_frame; + uint32_t last_flush_cycle; + uint32_t soft_flush_cycles; uint8_t bank_regs[8]; uint16_t z80_bank_reg; uint16_t tmss_lock[2]; -- cgit v1.2.3