significant performance regression with text animation #1384

Closed
opened 2026-02-16 17:30:45 -05:00 by yindo · 9 comments
Owner

Originally created by @khimaros on GitHub (Aug 19, 2025).

Originally assigned to: @adamdotdevin on GitHub.

i'm seeing very high cpu usage when "waiting" -- perhaps because of the new text animation that is being done. i've seen opencode eating up 100% of my CPUs (across all 16 cores) when i'm not interacting with it at all.

i had this problem with crush previously and it made it unusable for me. i was happy to have the performance improvements in opencode, but it seems like that has regressed. i'm not sure if this is a bubbletea issue?

Originally created by @khimaros on GitHub (Aug 19, 2025). Originally assigned to: @adamdotdevin on GitHub. i'm seeing very high cpu usage when "waiting" -- perhaps because of the new text animation that is being done. i've seen opencode eating up 100% of my CPUs (across all 16 cores) when i'm not interacting with it at all. i had this problem with crush previously and it made it unusable for me. i was happy to have the performance improvements in opencode, but it seems like that has regressed. i'm not sure if this is a bubbletea issue?
yindo closed this issue 2026-02-16 17:30:45 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Aug 19, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #1980: Cycling between subagent sessions becomes slow for larger sessions (mentions similar performance slowdowns)
  • #1752: When CPU is busy, scrollwheel escape codes are sent to textinput (mentions CPU being busy affecting UI)
  • #1905: Terminal cursor blinks in opencode even though it shouldn't (cursor animation issues that started with version 0.4.27)

The cursor blinking issue (#1905) is particularly relevant as it started with the same commit that changed cursor handling, and your issue mentions text animation performance problems. The slowdown with larger sessions (#1980) also describes similar performance degradation symptoms.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Aug 19, 2025): This issue might be a duplicate of existing issues. Please check: - #1980: Cycling between subagent sessions becomes slow for larger sessions (mentions similar performance slowdowns) - #1752: When CPU is busy, scrollwheel escape codes are sent to textinput (mentions CPU being busy affecting UI) - #1905: Terminal cursor blinks in opencode even though it shouldn't (cursor animation issues that started with version 0.4.27) The cursor blinking issue (#1905) is particularly relevant as it started with the same commit that changed cursor handling, and your issue mentions text animation performance problems. The slowdown with larger sessions (#1980) also describes similar performance degradation symptoms. Feel free to ignore if none of these address your specific case.
Author
Owner

@arsham commented on GitHub (Aug 19, 2025):

I've noticed the same thing. When it is waiting for the user for approval, the cpu usage goes to high.

@arsham commented on GitHub (Aug 19, 2025): I've noticed the same thing. When it is waiting for the user for approval, the cpu usage goes to high.
Author
Owner

@khimaros commented on GitHub (Aug 29, 2025):

i'm still seeing very high CPU usage when "waiting for permission..."

... 20   0 1513480 143320  17132 S  62.8   0.2  17:54.39 tui-j8skhkd7.
@khimaros commented on GitHub (Aug 29, 2025): i'm still seeing very high CPU usage when "waiting for permission..." ``` ... 20 0 1513480 143320 17132 S 62.8 0.2 17:54.39 tui-j8skhkd7. ```
Author
Owner

@rekram1-node commented on GitHub (Aug 29, 2025):

there was a pr merged yesterday or day before to help address this (not released yet), ultimately tho I think performance issues are still going to be common until tui is migrated to opentui

@rekram1-node commented on GitHub (Aug 29, 2025): there was a pr merged yesterday or day before to help address this (not released yet), ultimately tho I think performance issues are still going to be common until tui is migrated to opentui
Author
Owner

@khimaros commented on GitHub (Sep 4, 2025):

tested version 0.6.4 and the issue remains.

all 16 cores on my machine are used by tui when "waiting for permission..."

fans on my machine going crazy.

interestingly, this is not the case at the "enter send" prompt

@khimaros commented on GitHub (Sep 4, 2025): tested version 0.6.4 and the issue remains. all 16 cores on my machine are used by tui when "waiting for permission..." fans on my machine going crazy. interestingly, this is not the case at the "enter send" prompt
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Author
Owner

@khimaros commented on GitHub (Dec 28, 2025):

this is still an issue

@khimaros commented on GitHub (Dec 28, 2025): this is still an issue
Author
Owner

@khimaros commented on GitHub (Dec 28, 2025):

i will try disabling animations

@khimaros commented on GitHub (Dec 28, 2025): i will try disabling animations
Author
Owner

@rpodgorny commented on GitHub (Jan 18, 2026):

how do you disable animations? ...i seem to be experiencing elevated gpu usage in the "waiting" stage as well...

@rpodgorny commented on GitHub (Jan 18, 2026): how do you disable animations? ...i seem to be experiencing elevated gpu usage in the "waiting" stage as well...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1384