[hatari-devel] DSP optimization?
Eero Tamminen
oak at helsinkinet.fi
Sat Jan 15 11:57:01 CET 2011
Hi,
Now that Hatari DSP code doesn't anymore track Aranym, could we change
the dsp_core to be a static array like CPU core data is?
Accessing the core through a pointer is a small overhead in about everything
DSP does and we don't gain anything from it as Hatari will never emulate
more than one DSP at the time (like AFAIK has been the idea with the Aranym
DSP code).
- Eero
PS. I once even had a patch for that, but it's of course now out of date
and I don't remember whether I ever profiled it.
PPS. On quick & short profiling, Mahabharata DSP bottlenecks seems to
be dsp_jclr_pp() and dsp56k_execute_instruction() functions, both of them
executing over 20% of all instructions.
(next ones are interrupt handling, m68k_go(), DSP_Run() with much smaller
percentages.)
More information about the hatari-devel
mailing list