Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High CPU load when digits on Side Panel are running #1934

Open
jpka- opened this issue Oct 2, 2024 · 0 comments
Open

High CPU load when digits on Side Panel are running #1934

jpka- opened this issue Oct 2, 2024 · 0 comments

Comments

@jpka-
Copy link

jpka- commented Oct 2, 2024

There is unusually high CPU load when 1) Side panel is shown (Ctrl+P), 2) Transport tab selected, and 3) Transport is rolling. It gives visible and running Frame, Time, BBT digital scales. It consumes as much as 19 to 21% of i3-8100, and ~47% of Celeron J4005 (with fastest possible RAM at both cases; no extra GPU). Rack is empty.
When i comment out these two lines:

/usr/share/carla/carla_host.py
L2217: self.ui.l_transport_frame.setText("%03i'%03i'%03i" % (frame3, frame2, frame1))
L2222: self.ui.l_transport_bbt.setText("%03i|%02i|%04i" % (bar, beat, tick))

then CPU load drops quite substantially. Looks like setText() is far not efficient for fast updates. Carla 2.5.9, but same is with 2.5.8, and with as old as 2.4.2.
It can be non noticeable on higher horsepower CPUs, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant