I think I've adequately convinced myself that this is a general problem 
with Apple Java (Java for OS X) running under Yosemite and later and 
that it's not specific to any particular graphics chip.  Java for OS X 
just doesn't seem to enable the Quartz-accelerated Java 2D blitter on 
anything later than OS X 10.9.  It may be that something about Quartz 
changed in Yosemite, thus making it impossible to port that particular 
Java 2D blitter without significant effort.  Or maybe Apple just didn't 
want to have to deal with the newer graphics chips, like the Intel Iris, 
that were never available on machines old enough to run Mavericks.  They 
could have just decided to disable the Quartz Java 2D blitter rather 
than implement a selector to enable it on only the older graphics chips.

I checked in a commit 
(https://github.com/TurboVNC/turbovnc/commit/8f082e658e4eb7c217e6a7a696ea734ec1b18bcf)
 
to the upcoming 2.1 release that de-emphasizes the use of the 
"AppleJava" flavor of our viewer.  This commit removes the "OracleJava" 
extension from that flavor of the viewer, to emphasize that it should 
now be treated as the "default" flavor.  The "AppleJava" flavor should 
only be used on Mavericks or earlier.  The AppleJava flavor will likely 
be dropped in TurboVNC 2.2, and I also would like to investigate the 
possibility of using javapackager to create a truly standalone TurboVNC 
Viewer app for Mac (with the Oracle JRE embedded in the app-- 
https://github.com/TurboVNC/turbovnc/issues/59).


On 8/24/16 11:07 AM, Brady Koenig wrote:
> So using Oracle Java does indeed fix the issue!
>
> Thanks for the help.
> Brady
>
> On Wed, Aug 24, 2016 at 9:56 AM, Brady Koenig <[email protected]
> <mailto:[email protected]>> wrote:
>
>     Thanks. I'll try.
>
>     This is what I'm running: MacBook Pro (Retina, 15-inch, Late 2013)
>
>     If you send me the scripts and instructions I'll give it a try.
>
>     Thanks again
>     Brady
>
>     On Wed, Aug 24, 2016 at 9:52 AM, DRC
>     <[email protected]
>     <mailto:[email protected]>> wrote:
>
>         Have you tried the OracleJava version?  Depending on your graphics
>         hardware, that might be the fastest version anyhow.  I don't
>         claim that
>         these results are universal, but here's what the performance
>         situation
>         looks like on my test machines:
>
>         (Numbers represent average blit time across the "canonical" TurboVNC
>         session captures that we use for all of our viewer benchmarking:
>         http://www.turbovnc.org/rfbsessions.turbo.hiqual.tar.bz2
>         <http://www.turbovnc.org/rfbsessions.turbo.hiqual.tar.bz2>)
>
>         Late 2014 Mac Mini w/ 3 GHz i7 and Intel IRIS:
>         AppleJava (1.6.0_65):   2D sessions= 232s, 3D sessions= 46s
>         OracleJava (1.8.0_45):  2D sessions= 18s, 3D sessions= 9.4s
>
>         2009 Mac Mini w/ 2 GHz Core 2 Duo and nVidia GeForce 9400:
>         AppleJava (1.6.0_65):   2D sessions= 8.2s, 3D sessions= 9.7s
>         OracleJava (1.8.0_45):  2D sessions= 46s, 3D sessions= 9.3s
>
>         2011 Macbook Pro w/ 2.4 GHz i5 and Intel HD Graphics 3000:
>         AppleJava (1.6.0_65):   2D sessions= 5.3s, 3D sessions= 5.1s
>         OracleJava (1.8.0_45):  2D sessions= 70s, 3D sessions= 16s
>
>         Welcome to the Hell that is Java 2D.  On older equipment, Apple Java
>         (AKA "Java for OS X") tends to be faster, because it has a
>         Quartz-accelerated implementation of Java 2D.  However, that
>         Quartz-accelerated implementation of Java 2D apparently doesn't
>         support
>         newer graphics chips, like the Intel IRIS.  On my newer Mac Mini w/
>         IRIS, trying to use AppleJava is not only very slow (no Quartz
>         acceleration), but it produces visual anomalies like the one you're
>         describing (and the gamma doesn't appear to be correct, either.)  On
>         older machines, Oracle Java (which only uses OpenGL for Java 2D
>         on Mac
>         platforms-- no Quartz) is somewhat slower than Apple Java but is
>         still
>         usable.  It's worth noting that the 2D performance metrics aren't
>         necessarily realistic indicators of how the end user will perceive
>         performance.  Those benchmarks are just throwing tiles at the
>         blitter as
>         fast as they can.  The actual update rate is still quite fast with
>         Oracle Java on older systems, so whether or not an end user
>         could tell
>         the difference between Apple and Oracle Java on those systems is
>         an open
>         question.
>
>         Long and the short of it-- try Oracle Java and see if that works
>         around
>         the issue.  Apple Java is a deprecated product, and support for
>         it on
>         newer OS X releases is limited at best.
>
>
>         On 8/24/16 10:24 AM, Brady Koenig wrote:
>         >
>         > I'm using turboVNC server and client.
>         > server: turbovnc-2.0.1.x86_64.rpm
>         > client: TurboVNC-2.0.2-AppleJava
>         >
>         > I recently updated to El Capitan. Everything worked great before the
>         > upgrade.
>         > I run the turboVNC client in full screen mode on a second screen.
>         > When I switch focus back and forth from a window on the primary 
> screen
>         > to turboVNC on the secondary screen I get a brief full screen white
>         > flash. That's driving me nuts.
>         >
>         > Has anyone else seen this? Anyone found a work around?
>         >
>         > Thanks
>         > Brady
>
>         
> ------------------------------------------------------------------------------
>         _______________________________________________
>         TurboVNC-Users mailing list
>         [email protected]
>         <mailto:[email protected]>
>         https://lists.sourceforge.net/lists/listinfo/turbovnc-users
>         <https://lists.sourceforge.net/lists/listinfo/turbovnc-users>
>
>
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> TurboVNC-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/turbovnc-users
>

------------------------------------------------------------------------------
_______________________________________________
TurboVNC-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/turbovnc-users

Reply via email to