runtime tag lookup reduction (nw)

This commit is contained in:
David Haywood 2016-05-02 20:39:46 +01:00
parent 1db114abc9
commit 28eeb49676
2 changed files with 5 additions and 3 deletions

View File

@ -21,7 +21,8 @@ public:
m_gfxdecode(*this, "gfxdecode"),
m_screen(*this, "screen"),
m_palette(*this, "palette"),
m_generic_paletteram_32(*this, "paletteram")
m_generic_paletteram_32(*this, "paletteram"),
m_gfx2(*this,"gfx2")
{ }
optional_device<deco146_device> m_deco146;
@ -77,6 +78,7 @@ public:
required_device<screen_device> m_screen;
required_device<palette_device> m_palette;
required_shared_ptr<UINT32> m_generic_paletteram_32;
required_region_ptr<UINT8> m_gfx2;
DECLARE_READ16_MEMBER( sh96_protection_region_0_146_r );
DECLARE_WRITE16_MEMBER( sh96_protection_region_0_146_w );

View File

@ -140,8 +140,8 @@ void deco_mlc_state::draw_sprites( const rectangle &cliprect, int scanline, UINT
UINT32 *index_ptr=nullptr;
int offs,fx=0,fy=0,x,y,color,colorOffset,sprite,indx,h,w,bx,by,fx1,fy1;
int xoffs,yoffs;
UINT8 *rom = memregion("gfx2")->base() + 0x20000, *index_ptr8;
UINT8 *rawrom = memregion("gfx2")->base();
UINT8 *rom = m_gfx2 + 0x20000, *index_ptr8;
UINT8 *rawrom = m_gfx2;
int blockIsTilemapIndex=0;
int sprite2=0,indx2=0,use8bppMode=0;
int yscale,xscale;