Lag on macOS Big Sur with 4K Display

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
faruq
In need of some credit
In need of some credit
Posts: 3
Joined: Mon Jun 28, 2021 9:38 am

Lag on macOS Big Sur with 4K Display

Post by faruq »

Hi,
I have an issue with wxFrame on macOS Big Sur with 4K Display (iMac Retina). wxFrame window lags when it's maximized/unmaximized. I'm using wxWidgets 3.1.5.
Here is the video: https://drive.google.com/file/d/1s2sSuo ... sp=sharing

And here is the code:

Code: Select all

#include <wx/wxprec.h>
#ifndef WX_PRECOMP
    #include <wx/wx.h>
#endif
#include <wx/notebook.h>
#include <wx/sizer.h>

class GUI_App: public wxApp {
public:
    virtual bool OnInit();
};

bool GUI_App::OnInit() {
    wxFrame* frame = new wxFrame(NULL, 1, "Test");
    wxPanel* panel = new wxPanel(frame);
    wxBoxSizer* sizer = new wxBoxSizer(wxVERTICAL);

    wxNotebook* note = new wxNotebook(frame, 2);
    wxPanel* p1 = new wxPanel(note);
    wxPanel* p2 = new wxPanel(note);

    note->AddPage(p1, "One", true);
    note->AddPage(p2, "Two");

    sizer->Add(note, 1, wxEXPAND, 0);

    frame->SetSizer(sizer);
    frame->Show();

    return true;
}

IMPLEMENT_APP(GUI_App)
wxIMPLEMENT_WX_THEME_SUPPORT;
Thank you.
Best regards,
Faruq.
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Lag on macOS Big Sur with 4K Display

Post by doublemax »

Does it also happen when you build and run the "minimal" sample that comes with wxWidgets?
And it does not happen with any other application?
Use the source, Luke!
faruq
In need of some credit
In need of some credit
Posts: 3
Joined: Mon Jun 28, 2021 9:38 am

Re: Lag on macOS Big Sur with 4K Display

Post by faruq »

doublemax wrote: Mon Jun 28, 2021 11:53 am Does it also happen when you build and run the "minimal" sample that comes with wxWidgets?
Yes, it's happen when wxFrame has sizer or a child that expands its size to wxFrame's size.
doublemax wrote: Mon Jun 28, 2021 11:53 am And it does not happen with any other application?
Yes, it's only happen to wxWidgets app. "Audacity" app has the issue too.
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Lag on macOS Big Sur with 4K Display

Post by doublemax »

Please open a ticket at http://trac.wxwidgets.org/ and provide the same information.
(you'll have to create an account there, it's unrelated to this forum).

Thanks.
Use the source, Luke!
faruq
In need of some credit
In need of some credit
Posts: 3
Joined: Mon Jun 28, 2021 9:38 am

Re: Lag on macOS Big Sur with 4K Display

Post by faruq »

Okay, I'll report it to https://trac.wxwidgets.org/.
Thank you, doublemax.

Best regards,
Faruq.
Post Reply