From 2e33c0c9af88a1c9ed2600512cdfbf99ea6b8fd8 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 27 Dec 2006 09:32:57 +0000 Subject: [PATCH] comment --- stepmania/src/RageSoundReader_ThreadedBuffer.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stepmania/src/RageSoundReader_ThreadedBuffer.cpp b/stepmania/src/RageSoundReader_ThreadedBuffer.cpp index b023967320..cbd16ce339 100644 --- a/stepmania/src/RageSoundReader_ThreadedBuffer.cpp +++ b/stepmania/src/RageSoundReader_ThreadedBuffer.cpp @@ -6,6 +6,13 @@ /* * Implement threaded read-ahead buffering. + * + * If a buffer is low on data, keep filling until it has a g_iMinFillFrames. + * Once beyond that, fill at a rate relative to realtime. + * + * This allows a stream to have a large buffer, for higher reliability, without + * causing major CPU bursts when the stream starts or underruns. Filling 32k + * takes more CPU than filling 4k frames, and may cause a skip. */ /* The amount of data to read at once: */