changeset 661:01c51f397db2

Adjust 68K sync cycle when mclk_target gets adjusted
author Michael Pavone <pavone@retrodev.com>
date Thu, 01 Jan 2015 22:52:18 -0800
parents e7cae6d9aaa6
children 66388360f873
files blastem.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);