mirror of
https://github.com/holub/mame
synced 2025-05-25 15:25:33 +03:00
this gives me about 10% optimization on 3d scenes
This commit is contained in:
parent
fd0e672881
commit
224a644948
@ -601,7 +601,6 @@ READ8_MEMBER(taitojc_state::jc_pcbid_r)
|
||||
|
||||
READ32_MEMBER(taitojc_state::dsp_shared_r)
|
||||
{
|
||||
|
||||
return m_dsp_shared_ram[offset] << 16;
|
||||
}
|
||||
|
||||
@ -911,8 +910,7 @@ ADDRESS_MAP_END
|
||||
|
||||
READ16_MEMBER(taitojc_state::dsp_rom_r)
|
||||
{
|
||||
UINT16 *rom = (UINT16*)machine().root_device().memregion("gfx2")->base();
|
||||
UINT16 data = rom[m_dsp_rom_pos++];
|
||||
UINT16 data = ((UINT16*)m_gfx2->base())[m_dsp_rom_pos++];
|
||||
|
||||
//mame_printf_debug("dsp_rom_r: %08X, %08X at %08X\n", offset, mem_mask, cpu_get_pc(&space.device()));
|
||||
return data;
|
||||
|
@ -7,6 +7,7 @@ public:
|
||||
: driver_device(mconfig, type, tag),
|
||||
m_maincpu(*this,"maincpu"),
|
||||
m_dsp(*this,"dsp"),
|
||||
m_gfx2(*this, "gfx2"),
|
||||
m_vram(*this, "vram"),
|
||||
m_objlist(*this, "objlist"),
|
||||
m_snd_shared_ram(*this, "snd_shared"),
|
||||
@ -48,6 +49,8 @@ public:
|
||||
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<cpu_device> m_dsp;
|
||||
required_memory_region m_gfx2;
|
||||
|
||||
required_shared_ptr<UINT32> m_vram;
|
||||
required_shared_ptr<UINT32> m_objlist;
|
||||
optional_shared_ptr<UINT32> m_snd_shared_ram;
|
||||
|
Loading…
Reference in New Issue
Block a user