When to flush stream buffer with loop points