[hatari-devel] Higher precision when generating samples -> use nanosleep

Nicolas Pomarède npomarede at corp.free.fr
Wed Jan 26 13:51:09 CET 2011


Le 26/01/2011 13:04, Laurent Sallafranque a écrit :
> Hi,
>
> For me, the best precision we obtain, the best hatari will work.
>
> How are the other atari emulator's working ?
> Saint ?
> Steem ?
>
> And WinUae ? (they managed to reach a good level of emulation, do they
> use nanosleep) ?
>
> Regards
>
> Laurent
>

It's different, these emulators are only working under Windows, so you 
can use DirectX or similar API to get precise timers I guess.
Steem is ported to linux, but we don't have the sources, so can't say.

Our "problem" is that we want our solution to be portable and to work 
under every supported OS, so we can't really use Steem/Saint/Winuae 
approach, it's windows only.

Still, I think nanosleep() would be good, but it could be interesting to 
hear from people coding under OSX/Windows.


Nicolas



More information about the hatari-devel mailing list