Mercurial > repos > blastem
comparison vdp.c @ 1971:80920c21bb52
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
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 08 May 2020 11:40:30 -0700 |
parents | ba06346611a1 |
children | 6b9871d3d70d |
comparison
equal
deleted
inserted
replaced
1970:41b9509ede38 | 1971:80920c21bb52 |
---|---|
2116 } | 2116 } |
2117 context->cur_buffer = is_even ? FRAMEBUFFER_EVEN : FRAMEBUFFER_ODD; | 2117 context->cur_buffer = is_even ? FRAMEBUFFER_EVEN : FRAMEBUFFER_ODD; |
2118 context->pushed_frame = 1; | 2118 context->pushed_frame = 1; |
2119 context->fb = NULL; | 2119 context->fb = NULL; |
2120 } | 2120 } |
2121 //TODO: Check whether this happens before or after the cycle increment | |
2122 event_flush(context->cycles); | |
2123 vdp_update_per_frame_debug(context); | 2121 vdp_update_per_frame_debug(context); |
2124 context->h40_lines = 0; | 2122 context->h40_lines = 0; |
2125 context->frame++; | 2123 context->frame++; |
2126 context->output_lines = 0; | 2124 context->output_lines = 0; |
2127 } | 2125 } |