Skip to content

JUCE mouse click problem on external display solved by disabling vblank_mode #2233

@TricksterSam

Description

@TricksterSam

Plugdata 0.9.2 in pop-os 22.04 with an AMD Ryzen 7 7840hs w/ Radeon 780 graphics. Screen have mixed refresh rates.

Problem observed:

Mouse clicks were commonly ignored when the Plugdata window was on an external display. Mouse clicks worked when the window was on the internal display or overlapping between displays. This was likely caused by vsync issues causing the mouse click to be missed during a UI "sleep" interval.

Solution:

"env vblank_mode=0" can be executed before launching plugdata from the terminal.
This uncouples the repaint timer from the refresh rate so all mouse clicks are registered. This might result in screen tearing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions