Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Nov 23, 2017 10:44 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Cocoa: Push Button : Default=True causes discrete GPU
PostPosted: Mon May 13, 2013 7:26 pm 
Offline
User avatar

Joined: Thu Jul 27, 2006 6:31 pm
Posts: 1698
Location: Monterey, CA
(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.

_________________
ImagePlay Effects Library (40+ image effects in one open source module. No plugins, no dependencies, no restrictions.)
http://imageplay.sourceforge.net/


Top
 Profile  
Reply with quote  
 Post subject: Re: Cocoa: Push Button : Default=True causes discrete GPU
PostPosted: Mon May 13, 2013 11:03 pm 
Offline
User avatar

Joined: Fri Sep 30, 2005 11:00 am
Posts: 583
Location: Beautiful Taiwan
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?

_________________
Sam Rowlands
rMBP 15" @ 10.8 & '08 MBA 13" @ 10.6 + 10.7, RB2012
http://www.ohanaware.com/
AppWrapper - Prepare Apps for Mac App Store & OS X 10.8 - http://www.ohanaware.com/appwrapper/


Top
 Profile  
Reply with quote  
 Post subject: Re: Cocoa: Push Button : Default=True causes discrete GPU
PostPosted: Thu May 16, 2013 1:24 am 
Offline
User avatar

Joined: Thu Jul 27, 2006 6:31 pm
Posts: 1698
Location: Monterey, CA
* 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.

_________________
ImagePlay Effects Library (40+ image effects in one open source module. No plugins, no dependencies, no restrictions.)
http://imageplay.sourceforge.net/


Top
 Profile  
Reply with quote  
 Post subject: Re: Cocoa: Push Button : Default=True causes discrete GPU
PostPosted: Fri May 17, 2013 12:20 pm 
Offline

Joined: Wed Feb 04, 2009 1:43 pm
Posts: 427
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..


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group