Real Software Forums
http://forums.realsoftware.com/

Cocoa: Push Button : Default=True causes discrete GPU
http://forums.realsoftware.com/viewtopic.php?f=7&t=47870
Page 1 of 1

Author:  tomis [ Mon May 13, 2013 7:26 pm ]
Post subject:  Cocoa: Push Button : Default=True causes discrete GPU

(I'd report this via the Feedback.app, but it's refusing my login even though I can login just fine on RealSoftware.com)

Bug Report:
When compiling as Cocoa, PushButtons with Default property set to true cause the Discrete GPU to be used. This wastes battery, and should not be happening.

Hardware & Software:
MacBook Pro w/ Integrated & Dedicated GPUs
Real Studio 2012r2.1
OS X 10.8.3
(3rd party) gfxCardStatus 2.3

Steps to Reproduce:

1. Instal gfxCardStatus so you can monitor the GPU state.
2. Quit any programs currently causing the discrete GPU to be used.

The Project:
1. Create a new project in Real Studio.
2. Under build settings, check Cocoa.
3. Add a PushButton to the main window
4. Build and Run, or Debug
5. Note that gfxCardStatus indicates no change in GPU.
6. Quit the demo app.

1. Return to the project. Set the PushButton's "Default" property to true.
2. Build and Run, or Debug
3. Note that gfxCardStatus indicates the GPU switching from Integrated to Discrete

---------------------

If anyone else can duplicate this, please let me know here and file a bug report via the Feedback.app

Thanks.

Author:  rowlands [ Mon May 13, 2013 11:03 pm ]
Post subject:  Re: Cocoa: Push Button : Default=True causes discrete GPU

Can you confirm this with a Obj-C app, basically are you sure it's RS or is it the Cocoa framework? Do you have any animation on the window that might be causing the button to invalidate unnecessarily?

Author:  tomis [ Thu May 16, 2013 1:24 am ]
Post subject:  Re: Cocoa: Push Button : Default=True causes discrete GPU

* Doesn't happen when compiling as Carbon.
* Doesn't happen on any other Cocoa App with a Default button that I've found so far.

Author:  atarikid [ Fri May 17, 2013 12:20 pm ]
Post subject:  Re: Cocoa: Push Button : Default=True causes discrete GPU

I mentioned this a long time ago but no-one at RS got ears for this.
Its not only the buttons but several other stuff that triggers the discrete GPU.
Same happens with Xojo too.

If I am not mistaken there is a feedback case for this not even reviewed. Will search for it..

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/