mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
delay renedering md when it gets slow
This commit is contained in:
parent
a84fea86b8
commit
154309912d
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ class MarkdownStream:
|
|||
render_time = time.time() - start
|
||||
|
||||
# Set min_delay to render time plus a small buffer
|
||||
self.min_delay = max(render_time * 1.1, 1.0 / 30) # At least 30fps
|
||||
self.min_delay = min(max(render_time * 10, 1.0 / 20), 2)
|
||||
|
||||
num_lines = len(lines)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue