From 020f7a650838ab52be6113232b70e012a73f5c81 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sat, 30 Apr 2016 15:31:48 -0700 Subject: Implement SAT cache. Causes some graphical corruption in Overdrive due to an unrelated bug. --- vdp.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vdp.h') diff --git a/vdp.h b/vdp.h index a69cc90..59b8b0b 100644 --- a/vdp.h +++ b/vdp.h @@ -21,6 +21,7 @@ #define MAX_SPRITES_LINE_H32 16 #define MAX_SPRITES_FRAME 80 #define MAX_SPRITES_FRAME_H32 64 +#define SAT_CACHE_SIZE (MAX_SPRITES_FRAME * 4) #define FBUF_SHADOW 0x0001 #define FBUF_HILIGHT 0x0010 @@ -158,6 +159,7 @@ typedef struct { int8_t cur_slot; sprite_draw sprite_draw_list[MAX_DRAWS]; sprite_info sprite_info_list[MAX_SPRITES_LINE]; + uint8_t sat_cache[SAT_CACHE_SIZE]; uint16_t col_1; uint16_t col_2; uint16_t hv_latch; -- cgit v1.2.3