-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Open
Labels
bugSomething isn't workingSomething isn't workingperfIndicates a performance issue or need for optimizationIndicates a performance issue or need for optimizationwebRelates to opencode on web / desktopRelates to opencode on web / desktop
Description
Description
I noticed on my Linux machine with its 240 fps monitor that chrome was using 100% CPU whenever a terminal was open. The terminal wasn't doing anything, it was just sitting there. This results in the CPU running at a higher power profile than necessary and wasting battery.
Plugins
None
OpenCode version
1.2.6
Steps to reproduce
- Visit open code in a browser
- Open a terminal (non mobile)
- Run
btopor whatever tool you like to look at your CPU usage. Notice chromium is using 100%. - Close the terminal, CPU usage goes down to a few percentage.
Screenshot and/or share link
Here is a view of the chrome browser profiler when the terminal is open. Notice the 100% cpu usage.
Here is a view of the profiler on my own branch where I added a configuration and set the frame rate to 15 fps
Operating System
Linux
Terminal
n/a
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingperfIndicates a performance issue or need for optimizationIndicates a performance issue or need for optimizationwebRelates to opencode on web / desktopRelates to opencode on web / desktop