Cocoa GUI app getting slower on MacPro or MacMini when disconnecting all screens
Cocoa GUI app getting slower on MacPro or MacMini when disconnecting all screens
- Subject: Cocoa GUI app getting slower on MacPro or MacMini when disconnecting all screens
- From: Matthieu Beghin <email@hidden>
- Date: Wed, 11 Mar 2015 23:40:54 +0100
Hi,
I'm developing a GUI application base on Qt-cocoa. When disconnecting the last screen my application gets slower. In Instruments, I can see it's kind of "pausing" (CPU goes 0%) regularly.
I do some processing with a timer (actually using a Qt timer),
if I do nothing in the timer, it's called as often as when a screen is connected (120 times per second)
if I do some processing, it gets called 20 times per second, but CPU usage is very low
It looks like OSX is limiting the CPU usage of my application (average CPU usage gets lower when I unplug the screen)
(I disabled App Nap, so it's not related)
Any idea ?
Thanks !
Regards,
Matthieu Beghin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden