Re: [hatari-devel] 32 Bits mode and bad sound

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


On Wed, 14 Sep 2016, Troed Sångberg wrote:

Anders tried one of my recent builds on a 32 bit Mac and said it worked fine, but I don't know if he tested sound.
I'm on a business trip again so I can't attach the most recent build to this thread until this weekend. I build my own SDL2 library as well.

Hello,

yes I tried it on a 32-bit Mac, I just started quickly with no configuration made. It started up EmuTOS and made key clicks. No fuzzy pixels, it was nice 1:1 sharp pixels.


I tested it a bit more today, and Hatari is excessivly slow. Even when putting frameskip to 4 and lowering max size to 416*312, it writes >500 of these lines per second to the syslog:

---
2016-09-15 16.52.54 [0x0-0x18018].org.tuxfamily.Hatari[164] Your system is too slow, some sound samples were not correctly emulated
---

The syslogd is using up more CPU than Hatari :) Perhaps there should be checkbox in the UI somewhere to disable these messages, as it will only use CPU and fill logfiles most of the time.

Anyways, the sound distortion I could hear was clearly due to this problem and not badly computed sound emulation or buggy audio output.


This is on the original 2006 Macbook with 32-bit CoreDuo processor, 2 GHz, 2GB DDR2/667 and a very poor Intel GMA 950. The OS version is 10.6.8.

Just a hunch is that the GMA is not hw-accelerated with SDL2 and hence Hatari suffers very bad. But could also be that Hatari does not work over multiple cores and that the emulation itself hits the roof with only one 2 GHz 32-bit core.


But is it even worthwhile to bother supporting 32-bit Intel? The only machines with 32-bit are the original Macbook (CD) and Mac Mini (CS), all the rest of the Apple Intel machines are 64-bit. The GMA950 these 32-bit machines machines have is too weak to run Hatari/SDL2 by the looks of it, so why waste the time.

--
Anders Eriksson
ae@xxxxxx     http://www.dhs.nu/
ae@xxxxxxxxx  http://www.atari.org/


On Wed, Sep 14, 2016 at 6:02 PM, Jerome Vernet <vernet.jerome@xxxxxxxxxx> wrote:
      Le 14/09/2016 à 10:48, Nicolas Pomarède a écrit :
      >
      >
      > I run Hatari daily on linux 32 bit + SDL2 and never noticed this
      > problem, sound is correct.
      Yes, I tried also on Linux under VMWare, wich is also 32 bits. So it's
      Mac Related.
      > I see nothing in Hatari code that would change sound behaviour depending
      > on 32/64 bit.
      >
      Seems to be a speed issue. May be a display issue with SDL2 and 32 Bits.
      It may work correctly on a 32 bits system, wich I do not have...
      Somebody need to make a test....

      > Did Hatari worked with correct sound previously with SDL2 and 32 bit ?
      Good idea, but I do not have any 32 bits previous version...
      JV


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/