improved timing

This commit is contained in:
pablodanswer
2025-01-27 16:26:58 -08:00
committed by Evan Lohn
parent 1fe966d0f7
commit 3a07093663

View File

@@ -20,7 +20,7 @@ export function useOrderedPhases(externalPhase: StreamingPhase) {
const [phaseQueue, setPhaseQueue] = useState<StreamingPhase[]>([]);
const [displayedPhases, setDisplayedPhases] = useState<StreamingPhase[]>([]);
const lastDisplayTimeRef = useRef<number>(Date.now());
const MIN_DELAY = 1000; // 0.5 seconds
const MIN_DELAY = 300; // 0.5 seconds
const getPhaseIndex = (phase: StreamingPhase) => PHASES_ORDER.indexOf(phase);
const finalPhaseIndex = useRef<number | null>(null);