Re: JavaFX Application Heat up MacBook Pro

2016-03-28 Thread Scott Palmer
This must be something else then.  How many cores are on the that MacBook? I’m 
thinking maybe there are four cores and 25% CPU could indicate that there is 
one thread stuck in a busy loop.  That could explain the heat.

Do you have any animations running?  A static application just sitting there 
shouldn’t have noticeable CPU usage. I have tons of stuff running now, not 
JavaFX though, and CPU usage is around 2%.
What is the minimal application that exhibits the issue?

Scott


> On Mar 25, 2016, at 6:15 PM, Tai Hu  wrote:
> 
> I have a MacBook Pro 13 inch (2014 model). If I remembered correctly, it
> only has an integrated GPU. There is no discreet GPU
> 
> Thanks,
> 
> Tai
> 
> On Friday, March 25, 2016, Phil Race  wrote:
> 
>> 
>> 
>> See https://developer.apple.com/library/mac/qa/qa1734/_index.html
>> It is mentioned in (one of) the bugs you can get to if you follow the JBS
>> bug trail
>> 
>> -phil.
>> 
>> On 3/25/2016 2:48 PM, Tai Hu wrote:
>> 
>>> Thanks for the info. What entry should I put into info.plist?
>>> 
>>> Thanks
>>> 
>>> On Friday, March 25, 2016, Kevin Rushforth 
>>> wrote:
>>> 
>>> Yes, 8u77 has the FX fix for this issue:
 
 https://bugs.openjdk.java.net/browse/JDK-8132775
 
 However, due to the way Apple chose to enable this, you will need to
 package your application with the appropriate entry in the Info.plist
 file.
 
 The equivalent AWT fix --
 https://bugs.openjdk.java.net/browse/JDK-8041900
 -- is fixed in 8u92 which is scheduled to be released next month.
 
 -- Kevin
 
 
 Tai Hu wrote:
 
 I am on the latest 8u77.
> 
> On Friday, March 25, 2016, Scott Palmer  wrote:
> 
> 
> 
> What version of JavaFX are you running?
>> There is a known issue, where JavaFX (and AWT/Swing) trigger activation
>> of
>> the discreet GPU.  I believe for FX the issue has been resolved in the
>> latest version, but the equivalent AWT fix hasn't made it to a released
>> version yet.
>> 
>> Scott
>> 
>> 
>> 
>> On Mar 25, 2016, at 4:12 PM, Tai Hu >> 
>>> 
>>> > wrote:
>> 
>> 
>> My JavaFX application runs fine on a Windows box with less than 10% of
>>> 
>>> 
>>> CPU usage. However, if I run the same application on a MacBook Pro 13
>> inch
>> (Laptop monitor, no external monitor). About 30 seconds after I
>> launched
>> application, MacBook cooling fan will kick in and running high, just a
>> few
>> minutes later, laptop is too hot to put directly on your lap. Actually
>> I
>> tried Ensemble app, which has exactly same issue. Few minutes after
>> launch,
>> fan kicks in and laptop become hot. I put my application under VisualVM
>> and
>> also checked Mac Activity Monitor, based on the number both of them
>> show
>> the CPU usage is not extremely high and average out about 25% and
>> sometimes
>> spike to 40%. But entire machine heats up. Almost all of our Mac
>> clients
>> complained about this issue to us. Does anyone could shield some light
>> on
>> this issue?
>> 
>> 
>> Thanks,
>>> 
>>> Tai


Re: JavaFX Application Heat up MacBook Pro

2016-03-28 Thread Tai Hu
My MacBook Pro is a i5 dual core with 16GB of memory. The minimal application 
that exhibits the issue is just a simple window with web view and I used D3JS 
draw a simple graph (only 5-6 nodes). Then just let application sit idle there 
without doing anything. The CPU will heat up quickly. I put the application in 
VisualVM, other than JavaFX application thread, the next thread is taking up 
CPU time is QuantumRender. But my application is just sitting idle, no 
animation or any user activities.

Thanks,

Tai
> On Mar 28, 2016, at 11:58 AM, Scott Palmer  wrote:
> 
> This must be something else then.  How many cores are on the that MacBook? 
> I’m thinking maybe there are four cores and 25% CPU could indicate that there 
> is one thread stuck in a busy loop.  That could explain the heat.
> 
> Do you have any animations running?  A static application just sitting there 
> shouldn’t have noticeable CPU usage. I have tons of stuff running now, not 
> JavaFX though, and CPU usage is around 2%.
> What is the minimal application that exhibits the issue?
> 
> Scott
> 
> 
>> On Mar 25, 2016, at 6:15 PM, Tai Hu  wrote:
>> 
>> I have a MacBook Pro 13 inch (2014 model). If I remembered correctly, it
>> only has an integrated GPU. There is no discreet GPU
>> 
>> Thanks,
>> 
>> Tai
>> 
>> On Friday, March 25, 2016, Phil Race  wrote:
>> 
>>> 
>>> 
>>> See https://developer.apple.com/library/mac/qa/qa1734/_index.html
>>> It is mentioned in (one of) the bugs you can get to if you follow the JBS
>>> bug trail
>>> 
>>> -phil.
>>> 
>>> On 3/25/2016 2:48 PM, Tai Hu wrote:
>>> 
 Thanks for the info. What entry should I put into info.plist?
 
 Thanks
 
 On Friday, March 25, 2016, Kevin Rushforth 
 wrote:
 
 Yes, 8u77 has the FX fix for this issue:
> 
> https://bugs.openjdk.java.net/browse/JDK-8132775
> 
> However, due to the way Apple chose to enable this, you will need to
> package your application with the appropriate entry in the Info.plist
> file.
> 
> The equivalent AWT fix --
> https://bugs.openjdk.java.net/browse/JDK-8041900
> -- is fixed in 8u92 which is scheduled to be released next month.
> 
> -- Kevin
> 
> 
> Tai Hu wrote:
> 
> I am on the latest 8u77.
>> 
>> On Friday, March 25, 2016, Scott Palmer  wrote:
>> 
>> 
>> 
>> What version of JavaFX are you running?
>>> There is a known issue, where JavaFX (and AWT/Swing) trigger activation
>>> of
>>> the discreet GPU.  I believe for FX the issue has been resolved in the
>>> latest version, but the equivalent AWT fix hasn't made it to a released
>>> version yet.
>>> 
>>> Scott
>>> 
>>> 
>>> 
>>> On Mar 25, 2016, at 4:12 PM, Tai Hu >>> 
 
 > wrote:
>>> 
>>> 
>>> My JavaFX application runs fine on a Windows box with less than 10% of
 
 
 CPU usage. However, if I run the same application on a MacBook Pro 13
>>> inch
>>> (Laptop monitor, no external monitor). About 30 seconds after I
>>> launched
>>> application, MacBook cooling fan will kick in and running high, just a
>>> few
>>> minutes later, laptop is too hot to put directly on your lap. Actually
>>> I
>>> tried Ensemble app, which has exactly same issue. Few minutes after
>>> launch,
>>> fan kicks in and laptop become hot. I put my application under VisualVM
>>> and
>>> also checked Mac Activity Monitor, based on the number both of them
>>> show
>>> the CPU usage is not extremely high and average out about 25% and
>>> sometimes
>>> spike to 40%. But entire machine heats up. Almost all of our Mac
>>> clients
>>> complained about this issue to us. Does anyone could shield some light
>>> on
>>> this issue?
>>> 
>>> 
>>> Thanks,
 
 Tai



[9] review request: 8152860: Enforce gradle 2.11 as minimum version

2016-03-28 Thread Kevin Rushforth
Please review this simple patch to enforce the fact that gradle 2.11 is 
now the minimum.


https://bugs.openjdk.java.net/browse/JDK-8152860

-- Kevin



Re: JavaFX Application Heat up MacBook Pro

2016-03-28 Thread Chien Yang
BTW, I did a 15 min run of Ensemble8 testing a series of programs on my 
MBP 15 this morning. The machine remains cool and its fan remains off. 
Can you provide the steps on how you heated up your MBP running 
Ensemble8? Did you have other programs running?


Thanks,
- Chien

On 3/27/16, 11:37 PM, Chien Yang wrote:
You are correct. MBP 13 only has an integrated GPU and those 2 fixes 
mentioned earlier don't apply to your case.


- Chien

On 3/25/16, 3:15 PM, Tai Hu wrote:

I have a MacBook Pro 13 inch (2014 model). If I remembered correctly, it
only has an integrated GPU. There is no discreet GPU

Thanks,

Tai

On Friday, March 25, 2016, Phil Race  wrote:



See https://developer.apple.com/library/mac/qa/qa1734/_index.html
It is mentioned in (one of) the bugs you can get to if you follow 
the JBS

bug trail

-phil.

On 3/25/2016 2:48 PM, Tai Hu wrote:


Thanks for the info. What entry should I put into info.plist?

Thanks

On Friday, March 25, 2016, Kevin Rushforth
wrote:

Yes, 8u77 has the FX fix for this issue:

https://bugs.openjdk.java.net/browse/JDK-8132775

However, due to the way Apple chose to enable this, you will need to
package your application with the appropriate entry in the Info.plist
file.

The equivalent AWT fix --
https://bugs.openjdk.java.net/browse/JDK-8041900
-- is fixed in 8u92 which is scheduled to be released next month.

-- Kevin


Tai Hu wrote:

I am on the latest 8u77.

On Friday, March 25, 2016, Scott Palmer  wrote:



What version of JavaFX are you running?
There is a known issue, where JavaFX (and AWT/Swing) trigger 
activation

of
the discreet GPU.  I believe for FX the issue has been resolved 
in the
latest version, but the equivalent AWT fix hasn't made it to a 
released

version yet.

Scott



On Mar 25, 2016, at 4:12 PM, Tai Hu

>  wrote:


My JavaFX application runs fine on a Windows box with less than 
10% of


CPU usage. However, if I run the same application on a MacBook 
Pro 13

inch
(Laptop monitor, no external monitor). About 30 seconds after I
launched
application, MacBook cooling fan will kick in and running high, 
just a

few
minutes later, laptop is too hot to put directly on your lap. 
Actually

I
tried Ensemble app, which has exactly same issue. Few minutes after
launch,
fan kicks in and laptop become hot. I put my application under 
VisualVM

and
also checked Mac Activity Monitor, based on the number both of them
show
the CPU usage is not extremely high and average out about 25% and
sometimes
spike to 40%. But entire machine heats up. Almost all of our Mac
clients
complained about this issue to us. Does anyone could shield some 
light

on
this issue?


Thanks,

Tai





Re: JavaFX Application Heat up MacBook Pro

2016-03-28 Thread Tai Hu
I launched ensemble8 and go directly to animation example then just leave it 
there. After few minutes, my Laptop heat up.

Tai
> On Mar 28, 2016, at 12:06 PM, Tai Hu  wrote:
> 
> My MacBook Pro is a i5 dual core with 16GB of memory. The minimal application 
> that exhibits the issue is just a simple window with web view and I used D3JS 
> draw a simple graph (only 5-6 nodes). Then just let application sit idle 
> there without doing anything. The CPU will heat up quickly. I put the 
> application in VisualVM, other than JavaFX application thread, the next 
> thread is taking up CPU time is QuantumRender. But my application is just 
> sitting idle, no animation or any user activities.
> 
> Thanks,
> 
> Tai
>> On Mar 28, 2016, at 11:58 AM, Scott Palmer  wrote:
>> 
>> This must be something else then.  How many cores are on the that MacBook? 
>> I’m thinking maybe there are four cores and 25% CPU could indicate that 
>> there is one thread stuck in a busy loop.  That could explain the heat.
>> 
>> Do you have any animations running?  A static application just sitting there 
>> shouldn’t have noticeable CPU usage. I have tons of stuff running now, not 
>> JavaFX though, and CPU usage is around 2%.
>> What is the minimal application that exhibits the issue?
>> 
>> Scott
>> 
>> 
>>> On Mar 25, 2016, at 6:15 PM, Tai Hu  wrote:
>>> 
>>> I have a MacBook Pro 13 inch (2014 model). If I remembered correctly, it
>>> only has an integrated GPU. There is no discreet GPU
>>> 
>>> Thanks,
>>> 
>>> Tai
>>> 
>>> On Friday, March 25, 2016, Phil Race  wrote:
>>> 
 
 
 See https://developer.apple.com/library/mac/qa/qa1734/_index.html
 It is mentioned in (one of) the bugs you can get to if you follow the JBS
 bug trail
 
 -phil.
 
 On 3/25/2016 2:48 PM, Tai Hu wrote:
 
> Thanks for the info. What entry should I put into info.plist?
> 
> Thanks
> 
> On Friday, March 25, 2016, Kevin Rushforth 
> wrote:
> 
> Yes, 8u77 has the FX fix for this issue:
>> 
>> https://bugs.openjdk.java.net/browse/JDK-8132775
>> 
>> However, due to the way Apple chose to enable this, you will need to
>> package your application with the appropriate entry in the Info.plist
>> file.
>> 
>> The equivalent AWT fix --
>> https://bugs.openjdk.java.net/browse/JDK-8041900
>> -- is fixed in 8u92 which is scheduled to be released next month.
>> 
>> -- Kevin
>> 
>> 
>> Tai Hu wrote:
>> 
>> I am on the latest 8u77.
>>> 
>>> On Friday, March 25, 2016, Scott Palmer  wrote:
>>> 
>>> 
>>> 
>>> What version of JavaFX are you running?
 There is a known issue, where JavaFX (and AWT/Swing) trigger activation
 of
 the discreet GPU.  I believe for FX the issue has been resolved in the
 latest version, but the equivalent AWT fix hasn't made it to a released
 version yet.
 
 Scott
 
 
 
 On Mar 25, 2016, at 4:12 PM, Tai Hu  
> 
> > wrote:
 
 
 My JavaFX application runs fine on a Windows box with less than 10% of
> 
> 
> CPU usage. However, if I run the same application on a MacBook Pro 13
 inch
 (Laptop monitor, no external monitor). About 30 seconds after I
 launched
 application, MacBook cooling fan will kick in and running high, just a
 few
 minutes later, laptop is too hot to put directly on your lap. Actually
 I
 tried Ensemble app, which has exactly same issue. Few minutes after
 launch,
 fan kicks in and laptop become hot. I put my application under VisualVM
 and
 also checked Mac Activity Monitor, based on the number both of them
 show
 the CPU usage is not extremely high and average out about 25% and
 sometimes
 spike to 40%. But entire machine heats up. Almost all of our Mac
 clients
 complained about this issue to us. Does anyone could shield some light
 on
 this issue?
 
 
 Thanks,
> 
> Tai
> 



Re: JavaFX Application Heat up MacBook Pro

2016-03-28 Thread Chien Yang
Great! Can you please file a JIRA with your test program. We will 
investigate the issue.


https://wiki.openjdk.java.net/display/OpenJFX/Submitting+a+Bug+Report

- Chien

On 3/28/16, 9:06 AM, Tai Hu wrote:

My MacBook Pro is a i5 dual core with 16GB of memory. The minimal application 
that exhibits the issue is just a simple window with web view and I used D3JS 
draw a simple graph (only 5-6 nodes). Then just let application sit idle there 
without doing anything. The CPU will heat up quickly. I put the application in 
VisualVM, other than JavaFX application thread, the next thread is taking up 
CPU time is QuantumRender. But my application is just sitting idle, no 
animation or any user activities.

Thanks,

Tai

On Mar 28, 2016, at 11:58 AM, Scott Palmer  wrote:

This must be something else then.  How many cores are on the that MacBook? I’m 
thinking maybe there are four cores and 25% CPU could indicate that there is 
one thread stuck in a busy loop.  That could explain the heat.

Do you have any animations running?  A static application just sitting there 
shouldn’t have noticeable CPU usage. I have tons of stuff running now, not 
JavaFX though, and CPU usage is around 2%.
What is the minimal application that exhibits the issue?

Scott



On Mar 25, 2016, at 6:15 PM, Tai Hu  wrote:

I have a MacBook Pro 13 inch (2014 model). If I remembered correctly, it
only has an integrated GPU. There is no discreet GPU

Thanks,

Tai

On Friday, March 25, 2016, Phil Race  wrote:



See https://developer.apple.com/library/mac/qa/qa1734/_index.html
It is mentioned in (one of) the bugs you can get to if you follow the JBS
bug trail

-phil.

On 3/25/2016 2:48 PM, Tai Hu wrote:


Thanks for the info. What entry should I put into info.plist?

Thanks

On Friday, March 25, 2016, Kevin Rushforth
wrote:

Yes, 8u77 has the FX fix for this issue:

https://bugs.openjdk.java.net/browse/JDK-8132775

However, due to the way Apple chose to enable this, you will need to
package your application with the appropriate entry in the Info.plist
file.

The equivalent AWT fix --
https://bugs.openjdk.java.net/browse/JDK-8041900
-- is fixed in 8u92 which is scheduled to be released next month.

-- Kevin


Tai Hu wrote:

I am on the latest 8u77.

On Friday, March 25, 2016, Scott Palmer  wrote:



What version of JavaFX are you running?

There is a known issue, where JavaFX (and AWT/Swing) trigger activation
of
the discreet GPU.  I believe for FX the issue has been resolved in the
latest version, but the equivalent AWT fix hasn't made it to a released
version yet.

Scott



On Mar 25, 2016, at 4:12 PM, Tai Hu

>  wrote:


My JavaFX application runs fine on a Windows box with less than 10% of


CPU usage. However, if I run the same application on a MacBook Pro 13

inch
(Laptop monitor, no external monitor). About 30 seconds after I
launched
application, MacBook cooling fan will kick in and running high, just a
few
minutes later, laptop is too hot to put directly on your lap. Actually
I
tried Ensemble app, which has exactly same issue. Few minutes after
launch,
fan kicks in and laptop become hot. I put my application under VisualVM
and
also checked Mac Activity Monitor, based on the number both of them
show
the CPU usage is not extremely high and average out about 25% and
sometimes
spike to 40%. But entire machine heats up. Almost all of our Mac
clients
complained about this issue to us. Does anyone could shield some light
on
this issue?


Thanks,

Tai


[9] Review request: 8152858: Ensemble Timeline regression

2016-03-28 Thread Morris Meyer

Jonathan and Phil,

Could you review this one-line change to the Ensemble Timeline app?

Thanks,

--morris

https://bugs.openjdk.java.net/browse/JDK-8152858
http://cr.openjdk.java.net/~morris/JDK-8152858.01/


Re: JavaFX Application Heat up MacBook Pro

2016-03-28 Thread Tai Hu
I finally pinpoint the problem with my application. The culprit is 
ProgressIndicator with undetermined state. There are couple places in my 
application I used a stack pane to hide a ProgressIndicator at back. Then when 
I run some task in background thread, I will bring that progress indicator to 
the front. It seems that those progress indicators are running in the 
background even though they are not visible at all. On a MacBook Pro 13 inch, 
even I leave the application idle, it took 20-25% CPU constantly. After removed 
all those progress indicator, on the same laptop, idle application only takes 
less than 1% of CPU.

Thanks all for your help.

Tai
> On Mar 28, 2016, at 12:06 PM, Tai Hu  wrote:
> 
> My MacBook Pro is a i5 dual core with 16GB of memory. The minimal application 
> that exhibits the issue is just a simple window with web view and I used D3JS 
> draw a simple graph (only 5-6 nodes). Then just let application sit idle 
> there without doing anything. The CPU will heat up quickly. I put the 
> application in VisualVM, other than JavaFX application thread, the next 
> thread is taking up CPU time is QuantumRender. But my application is just 
> sitting idle, no animation or any user activities.
> 
> Thanks,
> 
> Tai
>> On Mar 28, 2016, at 11:58 AM, Scott Palmer  wrote:
>> 
>> This must be something else then.  How many cores are on the that MacBook? 
>> I’m thinking maybe there are four cores and 25% CPU could indicate that 
>> there is one thread stuck in a busy loop.  That could explain the heat.
>> 
>> Do you have any animations running?  A static application just sitting there 
>> shouldn’t have noticeable CPU usage. I have tons of stuff running now, not 
>> JavaFX though, and CPU usage is around 2%.
>> What is the minimal application that exhibits the issue?
>> 
>> Scott
>> 
>> 
>>> On Mar 25, 2016, at 6:15 PM, Tai Hu  wrote:
>>> 
>>> I have a MacBook Pro 13 inch (2014 model). If I remembered correctly, it
>>> only has an integrated GPU. There is no discreet GPU
>>> 
>>> Thanks,
>>> 
>>> Tai
>>> 
>>> On Friday, March 25, 2016, Phil Race  wrote:
>>> 
 
 
 See https://developer.apple.com/library/mac/qa/qa1734/_index.html
 It is mentioned in (one of) the bugs you can get to if you follow the JBS
 bug trail
 
 -phil.
 
 On 3/25/2016 2:48 PM, Tai Hu wrote:
 
> Thanks for the info. What entry should I put into info.plist?
> 
> Thanks
> 
> On Friday, March 25, 2016, Kevin Rushforth 
> wrote:
> 
> Yes, 8u77 has the FX fix for this issue:
>> 
>> https://bugs.openjdk.java.net/browse/JDK-8132775
>> 
>> However, due to the way Apple chose to enable this, you will need to
>> package your application with the appropriate entry in the Info.plist
>> file.
>> 
>> The equivalent AWT fix --
>> https://bugs.openjdk.java.net/browse/JDK-8041900
>> -- is fixed in 8u92 which is scheduled to be released next month.
>> 
>> -- Kevin
>> 
>> 
>> Tai Hu wrote:
>> 
>> I am on the latest 8u77.
>>> 
>>> On Friday, March 25, 2016, Scott Palmer  wrote:
>>> 
>>> 
>>> 
>>> What version of JavaFX are you running?
 There is a known issue, where JavaFX (and AWT/Swing) trigger activation
 of
 the discreet GPU.  I believe for FX the issue has been resolved in the
 latest version, but the equivalent AWT fix hasn't made it to a released
 version yet.
 
 Scott
 
 
 
 On Mar 25, 2016, at 4:12 PM, Tai Hu  
> 
> > wrote:
 
 
 My JavaFX application runs fine on a Windows box with less than 10% of
> 
> 
> CPU usage. However, if I run the same application on a MacBook Pro 13
 inch
 (Laptop monitor, no external monitor). About 30 seconds after I
 launched
 application, MacBook cooling fan will kick in and running high, just a
 few
 minutes later, laptop is too hot to put directly on your lap. Actually
 I
 tried Ensemble app, which has exactly same issue. Few minutes after
 launch,
 fan kicks in and laptop become hot. I put my application under VisualVM
 and
 also checked Mac Activity Monitor, based on the number both of them
 show
 the CPU usage is not extremely high and average out about 25% and
 sometimes
 spike to 40%. But entire machine heats up. Almost all of our Mac
 clients
 complained about this issue to us. Does anyone could shield some light
 on
 this issue?
 
 
 Thanks,
> 
> Tai
> 



Re: JavaFX Application Heat up MacBook Pro

2016-03-28 Thread Jonathan Giles
There are known issues regarding ProgressIndicator and unintended CPU 
usage. These will be fixed in JDK 9, but the work is pending new API in 
the scenegraph related to knowing exactly whether a Node is actually 
'tree visible' or not.


-- Jonathan

On 29/03/16 8:53 AM, Tai Hu wrote:

I finally pinpoint the problem with my application. The culprit is 
ProgressIndicator with undetermined state. There are couple places in my 
application I used a stack pane to hide a ProgressIndicator at back. Then when 
I run some task in background thread, I will bring that progress indicator to 
the front. It seems that those progress indicators are running in the 
background even though they are not visible at all. On a MacBook Pro 13 inch, 
even I leave the application idle, it took 20-25% CPU constantly. After removed 
all those progress indicator, on the same laptop, idle application only takes 
less than 1% of CPU.

Thanks all for your help.

Tai

On Mar 28, 2016, at 12:06 PM, Tai Hu  wrote:

My MacBook Pro is a i5 dual core with 16GB of memory. The minimal application 
that exhibits the issue is just a simple window with web view and I used D3JS 
draw a simple graph (only 5-6 nodes). Then just let application sit idle there 
without doing anything. The CPU will heat up quickly. I put the application in 
VisualVM, other than JavaFX application thread, the next thread is taking up 
CPU time is QuantumRender. But my application is just sitting idle, no 
animation or any user activities.

Thanks,

Tai

On Mar 28, 2016, at 11:58 AM, Scott Palmer  wrote:

This must be something else then.  How many cores are on the that MacBook? I’m 
thinking maybe there are four cores and 25% CPU could indicate that there is 
one thread stuck in a busy loop.  That could explain the heat.

Do you have any animations running?  A static application just sitting there 
shouldn’t have noticeable CPU usage. I have tons of stuff running now, not 
JavaFX though, and CPU usage is around 2%.
What is the minimal application that exhibits the issue?

Scott



On Mar 25, 2016, at 6:15 PM, Tai Hu  wrote:

I have a MacBook Pro 13 inch (2014 model). If I remembered correctly, it
only has an integrated GPU. There is no discreet GPU

Thanks,

Tai

On Friday, March 25, 2016, Phil Race  wrote:



See https://developer.apple.com/library/mac/qa/qa1734/_index.html
It is mentioned in (one of) the bugs you can get to if you follow the JBS
bug trail

-phil.

On 3/25/2016 2:48 PM, Tai Hu wrote:


Thanks for the info. What entry should I put into info.plist?

Thanks

On Friday, March 25, 2016, Kevin Rushforth 
wrote:

Yes, 8u77 has the FX fix for this issue:

https://bugs.openjdk.java.net/browse/JDK-8132775

However, due to the way Apple chose to enable this, you will need to
package your application with the appropriate entry in the Info.plist
file.

The equivalent AWT fix --
https://bugs.openjdk.java.net/browse/JDK-8041900
-- is fixed in 8u92 which is scheduled to be released next month.

-- Kevin


Tai Hu wrote:

I am on the latest 8u77.

On Friday, March 25, 2016, Scott Palmer  wrote:



What version of JavaFX are you running?

There is a known issue, where JavaFX (and AWT/Swing) trigger activation
of
the discreet GPU.  I believe for FX the issue has been resolved in the
latest version, but the equivalent AWT fix hasn't made it to a released
version yet.

Scott



On Mar 25, 2016, at 4:12 PM, Tai Hu 

> wrote:


My JavaFX application runs fine on a Windows box with less than 10% of


CPU usage. However, if I run the same application on a MacBook Pro 13

inch
(Laptop monitor, no external monitor). About 30 seconds after I
launched
application, MacBook cooling fan will kick in and running high, just a
few
minutes later, laptop is too hot to put directly on your lap. Actually
I
tried Ensemble app, which has exactly same issue. Few minutes after
launch,
fan kicks in and laptop become hot. I put my application under VisualVM
and
also checked Mac Activity Monitor, based on the number both of them
show
the CPU usage is not extremely high and average out about 25% and
sometimes
spike to 40%. But entire machine heats up. Almost all of our Mac
clients
complained about this issue to us. Does anyone could shield some light
on
this issue?


Thanks,

Tai




9-dev unlocked following sanity testing

2016-03-28 Thread Kevin Rushforth




[9] Review request: 8091832: Provide API for getting the Screen scale on HiDPI screens

2016-03-28 Thread Jim Graham

bug: https://bugs.openjdk.java.net/browse/JDK-8091832
webrev: http://cr.openjdk.java.net/~flar/JDK-8091832/webrev.rt.00/

This webrev fixes pixel snapping and application control over pixel 
scaling on HiDPI screens:


- snap*() methods are all updated to take the current scale into account
- new variants of snap*() methods are added for separate X/Y control:
Added: Region.snapSpaceX/Y()
Added: Region.snapSizeX/Y()
Added: Region.snapPositionX/Y()
- the non-X/Y variants of the above methods are now deprecated:
Deprecated: Region.snapSpace()
Deprecated: Region.snapSize()
Deprecated: Region.snapPosition()
- methods to query the scale values of Screen objects:
Added: Screen.getOutputScaleX/Y()
- properties to query and/or modify the scale values of Window objects:
Added Read-Only  DoubleProperty:  Window.getOutputScaleX/Y()
Added Read-Write BooleanProperty: 
Window.set/getForceIntegerRenderScale()

Added Read-Write DoubleProperty:  Window.set/getRenderScaleX/Y()

The changes have been compiled and tested on Windows and Mac and there 
were trivial changes needed to the Linux files to adapt to one new 
method signature, but I haven't done the test build on Linux yet...


...jim