|Re: [hatari-devel] Falcon Sound|
[ Thread Index |
| More lists.tuxfamily.org/hatari-devel Archives
Le 13/10/2016 à 08:55, Eero Tamminen a écrit :
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:
<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
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...
Also, I'm not sure that the "tick" you would read from the OS would be
precise enough to run accurately (you need to have at least a 32 MHz