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

Remove potentially long runnig while loops from the engine (lp:1943320) #4312

Merged
merged 5 commits into from
Sep 24, 2021

Conversation

daschuer
Copy link
Member

This fixes high CPU load when using very high BPM values.
https://bugs.launchpad.net/mixxx/+bug/1943320

Copy link
Contributor

@uklotzde uklotzde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Manually calculating fmod() for loop position adjustments feels cumbersome. Please verify.

src/engine/controls/loopingcontrol.cpp Show resolved Hide resolved
src/engine/controls/loopingcontrol.cpp Show resolved Hide resolved
@uklotzde
Copy link
Contributor

Good catch! This code was really bad and a ticking time bomb.

Copy link
Contributor

@uklotzde uklotzde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! LGTM

@uklotzde uklotzde merged commit 93841fd into mixxxdj:2.3 Sep 24, 2021
@uklotzde
Copy link
Contributor

@daschuer Please merge into main.

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