|
|
I did a little performance analysis on this. It's not representative because I use an M1 laptop, but at least with Monterey 12.6, I see a little bit of this.
I can see how a fullscreen window has quite some impact on rendering times on my Retina display. I don't have the effect that using the secondary display is slower, but I was surprised to see that I get a frame rate of only 16fps on either display. Drawing a fullscreen rectangle takes about 1ms, so that's not the issue. But diving deeper, copying the back buffer to the front buffer (macOS always has builtin double buffering) takes most of the time.
In the comments I saw that Manolo has added some code that special-handles `Fl_Window::make_current()`, so it is definitely a bad idea to call that anywhere. But even after deleting that, the UI is still at 16fps. Maybe Manolo has an idea? Maybe removing make_current() is a good-enough fix?
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/250e84d0-a005-48d9-a555-5131bc3aef7fn%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |