-
Notifications
You must be signed in to change notification settings - Fork 33
Mutex adapter plus other platform specific things #551
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
Conversation
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.
All looks good in principle.
My main concern is regarding the drawing mutex and that testing this branch shows to me absolutely no improvement in drawing corruption when testing with a deoptimised build with Tardline.
In comparison testing PR #542 in the same configuration shows no drawing corruption at all.
So I'd want us to merge #542 first and then be very careful with merge conflict resolution on merging this PR afterwards that we don't accidentally lose the fixes from #542.
@@ -518,7 +519,9 @@ bool AppWindow::onEvent(GUIEvent &event) { | |||
unsigned short v = 1 << event.GetValue(); | |||
|
|||
MixerService *sm = MixerService::GetInstance(); | |||
sm->Lock(); | |||
// TODO(democloid): this causes a deadlock, verify original intent |
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.
my concern here is if the mutex was not actually being enabled (by mistake) but things actually work fine then it really shouldnt be here if it causes a deadlock and we should just remove it.
@democloid also need to be careful with merging this after #544 and #545 as this PR is stacked on those and currently includes those commits too. |
Macro instrument was still being instantiated using almost 20kb memory. |
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.
👍🏻
Changes:
partially fixes #547