[hatari-devel] New CPU, MacOsX Build
Nicolas Pomarède
npomarede at corp.free.fr
Sun Jan 30 13:08:38 CET 2011
Le 30/01/2011 12:32, Jerome Vernet a écrit :
> I just tried in windowed mode. Under MacOsX, there is an huge overhead
> is this mode. But, by this time where anybody have multicore CPU, that's
> may be a good idea to try a multithreaded implementation of the DSP and
> Math CPU ?
>
Hi,
I think this would just make things worse, because we would need extreme
synchronisation between the threads to be sure DSP and CPU are really
running at compatible speed. And obtaining the equivalent of cycle
precision with thread seems quite hard.
So all the sync problems we have now would be even greater and would be
spread among many independant threads (requiring locking, semaphore and
all the usual mechanismes, and making it harder to debug).
For me there's no doubt that maximum precision can only be obtained by
having only one thread that manages the different components by
allocating a number of cycle to each one (and due to the overhead of
threads handling / more tasks switching, it's quite possible multi
thread would be also slower).
Nicolas
More information about the hatari-devel
mailing list