mirror of
https://github.com/JezzWTF/vibepod.git
synced 2026-06-01 15:22:14 +00:00
perf(cpu): tune streaming playback
Keep CPU async decode enabled without CFG parallelism, expand CPU buffering defaults for smooth playback, prevent CPU startup from mutating the lockfile during thread autodetection, and document runtime tuning variables in the example environment file.
This commit is contained in:
@@ -157,7 +157,7 @@ export default function GenerationControls({
|
||||
<div className="flex flex-col gap-2">
|
||||
<div className="flex items-center justify-between">
|
||||
<label className="text-sm font-medium" style={{ color: "var(--foreground)" }}>
|
||||
Quality vs Speed
|
||||
Speed vs Quality
|
||||
</label>
|
||||
<span
|
||||
className="text-sm font-mono px-2 py-0.5 rounded"
|
||||
@@ -221,7 +221,7 @@ export default function GenerationControls({
|
||||
<input
|
||||
type="range"
|
||||
min={0.5}
|
||||
max={10.0}
|
||||
max={30.0}
|
||||
step={0.5}
|
||||
value={prebufferSecs}
|
||||
onChange={(e) => onPrebufferSecsChange(parseFloat(e.target.value))}
|
||||
@@ -271,7 +271,7 @@ export default function GenerationControls({
|
||||
id="resume-threshold"
|
||||
type="range"
|
||||
min={0.5}
|
||||
max={5.0}
|
||||
max={30.0}
|
||||
step={0.1}
|
||||
value={resumeThresholdSecs}
|
||||
onChange={(e) => {
|
||||
|
||||
@@ -6,7 +6,7 @@ const SAMPLE_RATE = 24_000;
|
||||
const DEFAULT_PREBUFFER_SECS = 5.0;
|
||||
const DEFAULT_REBUFFER_THRESHOLD_SECS = 1.0;
|
||||
const DEFAULT_RESUME_THRESHOLD_SECS = 3.0;
|
||||
const MAX_ADAPTIVE_RESUME_SECS = 18.0;
|
||||
const MAX_ADAPTIVE_RESUME_SECS = 30.0;
|
||||
|
||||
interface GenerateOptions {
|
||||
text: string;
|
||||
|
||||
Reference in New Issue
Block a user