# HG changeset patch # User Michael Pavone # Date 1420181538 28800 # Node ID 01c51f397db25728f96c65029cc26bc46a81c42d # Parent e7cae6d9aaa6c0adb1b8d88c69f71af8abf30778 Adjust 68K sync cycle when mclk_target gets adjusted diff -r e7cae6d9aaa6 -r 01c51f397db2 blastem.c --- a/blastem.c Thu Jan 01 22:18:32 2015 -0800 +++ b/blastem.c Thu Jan 01 22:52:18 2015 -0800 @@ -307,6 +307,7 @@ vdp_run_context(v_context, mclks); } mclk_target = vdp_cycles_to_frame_end(v_context); + context->sync_cycle = mclk_target/MCLKS_PER_68K; } else { //printf("running VDP for %d cycles\n", mclks - v_context->cycles); vdp_run_context(v_context, mclks);