From 84aab9842b90b12ccf545b48f3683c8622208ec1 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sat, 21 Sep 2019 11:01:07 -0700 Subject: Calculate fine scroll once per line for a small speedup --- vdp.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vdp.h') diff --git a/vdp.h b/vdp.h index 5904195..780ad20 100644 --- a/vdp.h +++ b/vdp.h @@ -193,7 +193,9 @@ typedef struct { uint16_t border_top; uint16_t border_bot; uint16_t hscroll_a; + uint16_t hscroll_a_fine; uint16_t hscroll_b; + uint16_t hscroll_b_fine; uint16_t h40_lines; uint16_t output_lines; sprite_draw sprite_draw_list[MAX_SPRITES_LINE]; -- cgit v1.2.3