On Thu, Jan 2, 2014 at 11:12 PM, Tom Kunicki <[email protected]>wrote:
> Andrea,
>
> I did a little search on this but couldn't find anything obvious. Has
> there been any work to utilize Java2D in a way that could take advantage of
> acceleration (OpenGL pipeline introduced in Java 5, Volatile/ManageImage)
> [1,2] or some 3rd party libraries [3].
>
> I looked for constructs in GeoTools and GeoServer like:
>
> GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
> GraphicsConfiguration gc =
> ge.getDefaultScreenDevice().getDefaultConfiguration();
> BufferedImage img = gc.createCompatibleImage(width, height,
> Transparency.TRANSLUCENT);
> img.setAccelerationPriority(1);
>
> ...but didn't see anything. Of course there needs to be underlying
> hardware to support this.
>
Nope, we did not try much. Personally I've never had a graphics card worth
using for this purpose, every time I've tried
some java + GPU combination (e.g., OpenCL, Aparapi) I've found that
carefully written Java code was as fast, or faster, and more
scalable, than the GPU accelerated one... given the reports of the contrary
on the net, this is probably due to the poor hardware
at hand I guess(I've got a GeForce GTX 260 on my desktop, not sure what's
on the notebook, it's one of those combined Intel + Nvidia
solutions that Linux is never too happy about).
>
>
> I'm an OpenGL nerd by prior experience and it's a powerful tool. Most of
> my work has been solving very specific rendering and analytical problems.
> Working in OpenGL to generate a generalized and optimized renderer is not
> always so easy which is why the use of a magic JDK flag or code construct
> would be nice.
>
> Tom.
>
> [1]
> http://docs.oracle.com/javase/7/docs/webnotes/tsg/TSG-Desktop/html/java2d.html#gcgto
> [2] http://docs.oracle.com/javase/7/docs/technotes/guides/2d/flags.html
> [3] http://brandonborkholder.github.io/glg2d/
>
This one is interesting. Do you have time to do some testing and see if it
provides any benefit?
Cheers
Andrea
--
*== GeoSolutions will be closed for seasonal holidays from 23/12/2013 to
06/01/2014 ==*
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel