summaryrefslogtreecommitdiff
path: root/vdp.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2016-04-30 15:31:48 -0700
committerMichael Pavone <pavone@retrodev.com>2016-04-30 15:31:48 -0700
commit020f7a650838ab52be6113232b70e012a73f5c81 (patch)
treeb415bcd8ce7e3d61403ec5010b90bd6323d808c8 /vdp.h
parentf57bfb8aede525c24315b7dd07b8291795b8b547 (diff)
Implement SAT cache. Causes some graphical corruption in Overdrive due to an unrelated bug.
Diffstat (limited to 'vdp.h')
-rw-r--r--vdp.h2
1 files changed, 2 insertions, 0 deletions
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;