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

Reduce progress update interval to 0.1 #169

Merged
merged 1 commit into from
Oct 15, 2023
Merged

Reduce progress update interval to 0.1 #169

merged 1 commit into from
Oct 15, 2023

Conversation

skyline75489
Copy link

This significantly reduces CPU usage.

@skyline75489
Copy link
Author

I'm using an old MBP (Early 2015) and I noticed very high CPU usage while playing music (~50%). With this PR, the CPU usage drops to ~7% while playing.

@NattyNarwhal
Copy link
Member

Looks like I ran the numbers before a year ago almost to this day. I reverted back to the 0.01 NSTimer instead of using KVO, but did notice that a 0.1 timer took less CPU time. I just don't remember why I didn't apply that change afterward.

@NattyNarwhal
Copy link
Member

Oh, I think it might have been the sliders not adjusting constantly smoothly. I don't think it matters that much though.

@NattyNarwhal NattyNarwhal merged commit 537ce8a into SubmarinerApp:master Oct 15, 2023
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

Successfully merging this pull request may close these issues.

2 participants