[uae] Sound crackling with JIT (was Re: Re: New binaries for testing)

  • From: Richard Drummond <evilrich@xxxxxxxxxxxxxx>
  • To: uae@xxxxxxxxxxxxx
  • Date: Wed, 20 Apr 2005 09:18:02 -0500

Hi Lem

On Tuesday 19 April 2005 07:11 pm, Lem wrote:
> I still get the problem of major sound crackling when JIT is enabled. Do
> you get that too? (anyone else?) It seems to be better when the JIT is
> running some new code, then once it's settled down, the sound crackling
> returns.

From your description this would appear to be due to the fact that when the 
emulator is running compiled code, it's less friendly to the custom-chip 
emulation. By 'less friendly' I mean that there's a greater latency in 
handling custom-chip events - hence the audio drop outs. Does increasing the 
size of the audio buffer reduce the problem?

When the emulator is presented with new code, it's interpreted several times 
before it's compiled (this is a hot-spot kind of thing - only code that is 
used several times is actually compiled) and the interpretive emulator is 
much more accomodating to the custom-chip emulation.

I don't have a solution for this as yet. I need to study in more detail how 
the custom-chip emulator meshes with the JIT...


Other related posts:

  • » [uae] Sound crackling with JIT (was Re: Re: New binaries for testing)