Skip to content

You need a trick for macOS on 4k/5k #1232

Closed

Description

@SourceTrigger

Hello,

On macOS in 4k and 5k resolutions the program runs very slowly. It jerks extremely. The reason for this is that no OpenGL Context is used. On Windows and Linux it's no problem, but under mac it's a disaster :)

You can increase the rendering of tables in particular by 400% by adding a layer when initializing the program.

Add in MainWindow Constructor after setupUI:

#ifdef Q_OS_MACX
    QOpenGLWidget *ogl = new QOpenGLWidget(this);
    ui->horizontalLayout->addWidget(ogl);
    ogl->setHidden(true);
#endif

and add QOpenGLWidget to includes. After this Qt use OpenGL rendering ;)

It does not matter where the widget is located, the main thing is that it exists and Qt use the OpenGL rendering on mac.

I've made a short video for you to see both versions
Video on Youtube

Activity

  1. justinclift commented on Nov 19, 2017

    @justinclift
    Member

    Ahhh, that should be pretty easy to do.

    Do you want to make a Pull Request, which we can just merge? 😄

  2. SourceTrigger commented on Nov 20, 2017

    @SourceTrigger
    ContributorAuthor

    Hello,

    I'm new to GitHub, I did it.
    #1233

  3. justinclift commented on Nov 20, 2017

    @justinclift
    Member

    Oops, thanks. I completely forgot to close this. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions