8000 macOS DAW UIs become very unresponsive after plugin window is opened · Issue #126 · RustAudio/baseview · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
macOS DAW UIs become very unresponsive after plugin window is opened #126
Closed
@jakerr

Description

@jakerr

Opening a gui plugin that uses baseview on macOS causes the entire DAW (FL Studio, Reaper) to be very slow to respond especially when resizing windows and panels.

After much debugging I finally came along this line in src/baseview/src/macos/view.rs

let _: () = msg_send![class!(NSEvent).setMouseCoalescingEnabled: NO];

Because mouseCoalescingEnabled is a class property on NSEvent changing it affect the entire process i.e. the host DAW. So from that point forward every mouse event is non coalesced and the number of events is just too great for the various DAWs' GUIs to keep up when moving sliders / resizing windows etc.

I tried removing the line which fixes the slowdown, and the plugin GUI interaction even feels smoother to me without.
I'm not sure why that line was there to begin with though, so If it is indeed required, it would be good to at least set the initial value back once the view is cleaned up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0