-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
make ControlPotmeter's '_set_default' an in/out CO #3804
Conversation
@NotYourAverageAl |
@ronso0 thanks, I can confirm this fixes the lag issue completely. |
okay, great! Though, this is just a workaround.
|
Documentation is in mixxxdj/manual#374 |
not sure if this is bikeshedding, but I'd suggest naming the CO |
or |
Or simply name it by what it stands for, i.e. |
Isn't a rate of zero standstill? If the slider is in the center position it's rate one. |
It's a relative rate. |
|
thanks for the proposals, nothing really convinced me, except maybe the new CO is a read-only state so if we want to get away from the slider reference it should be |
let's vote 😬 😁 |
sry, just kidding... The more I think about it I think the original quick shot Accordingly we also have |
Just out of interest, can we explain the GUI lag now? Maybe we have discovered an endless loop somewhere. Something like two rounding functions that have two ideas of rounding. I can confirm that such a center indicator is usefull. So nothing holding back this PR. |
Wait ... does this apply to all sliders? |
I'm sorry, I really did not intend to create a bikeshedding discussion, though my opinion on If I still didn't convince you, I'd be ok with |
The existing Co is "rate_set_default" What do you think? |
Those are COs added because |
Yes, right. Currently it is only used the receive updates. It would be no deal to move the logic introduced here to this control and let all sliders an knobs benefit from it. |
@daschuer You're right, all potmeter controls should have this status CO. "no big deal" may be correct if you've been working on the control system for years. I haven't, but I made it. Please test. |
Oh sorry, this was not meant to talk the work small. Every change is a significant effort and thank you for picking it up. |
I am unsure about the following: From the naming, it would be the least confusing solution to introduce the complement CO _is_default to _set_default. All this works for me, I just want to make sure we make an informed decision. |
I'm in favor of this solution and deprecating _set_default. |
Sounds reasonable. To clarify the purpose and urgency of this PR: avoid GUI lags @NotYourAverageAl encountered. |
If the current implementation is okay I'll update mixxxdj/manual#374 |
no prob, I didn't understand it that way, it's just not "swapping a few lines" only, as the perfomrmance issue indicates.. |
ronso0#24 is a improved version. The original issue is hopefully solved with #3806 We can create an alias at any time later, while undoing the alias is hard. ... |
Thanks @daschuer ! |
@Swiftb0y Do you want to have a final look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also document that reading from _set_default
indicates whether the controls value is currently its default value in the manual?
As soon as all reviewers will have approved the changes I'd like to squash the c++ and and the skin changes into two commits. |
Yes, thank you. |
Nice, done. |
Thanks. Please update the manual accordingly. |
inspired by the GUI lag probably caused by
<Transform><IsEqual>0.5</IsEqual></Transform>
when using a high-res pitch sliderhttps://mixxx.discourse.group/t/mixtrack-pro-3-tempo-slider-lag-on-w10/21835/18
It's not yet verified that this would fix the lag, butit's handy anyway to have
group, control _set_default
with read/write capability.TODO