Re: [hatari-devel] Falcon Sound

[ Thread Index | Date Index | More Archives ]


On 10/13/2016 12:56 AM, Miro Kropáček wrote:
On 13 October 2016 at 07:17, Eero Tamminen <oak@xxxxxxxxxxxxxx> wrote:

Adding threading and locking on top of that, to be able to run few DSP
instructions at a time on separate core wouldn't help much and could
even slow down things.

I'm not so sure about this. You could have something like a:

<execute instruction>
<wait until the tick reaches the original clock cycle time>
<execute instruction> ...

so you wouldn't synchronise to the CPU but to a time interval. So the CPU,
DSP, Videl, SDMA ... could have all have a sense of time instead of
interdependencies to each other.

You cannot rely just on host timing.  Processes & threads get
context switched at arbitrary points, so you will need also

Current OSes locking mechanisms spin CPU for a while in case lock
gets immediately released, and in a Falcon CPU<->DSP emulation which
would need to do that constantly, well...

	- Eero

Mail converted by MHonArc 2.6.19+