Mercurial > repos > blastem
diff vdp.h @ 998:bf63cbf1d7bb
Implement SAT cache. Causes some graphical corruption in Overdrive due to an unrelated bug.
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 30 Apr 2016 15:31:48 -0700 |
parents | 928442068afe |
children | e34334e6c682 |
line wrap: on
line diff
--- a/vdp.h Sat Apr 30 10:47:29 2016 -0700 +++ b/vdp.h Sat Apr 30 15:31:48 2016 -0700 @@ -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 @@ 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;