Ian Payton wrote:

This outputs debug information about the garbage collection. The half-second drop-outs in the audio coincide directly with when Java does a "Full GC". The Java debug even reports that the "Full GC" took half a second (bingo!). Running the incremental garbage collector instead helps (using -Xincgc on the java command-line starting SoftSqueeze - see the man page for "java"), but it seems like the performance on my Linux client machine is so marginal for doing this that java still doesn't have the time to do *all* the garbage collection in the background, and still does a bigger garbage collection from time to time, resulting in a (much smaller) audio drop-out and consequent loss of sync.


Good old java. This also explains why I get perfect sync using slimp3slave, which doesn't have the garbage collection issues that Java does. So, how to fix this?

You might want to try the concurrent garbage collector. http://java.sun.com/developer/technicalArticles/Programming/turbo/

- Marc
_______________________________________________
Discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss

Reply via email to