File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Improving Graphics Drawing Performance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Improving Graphics Drawing Performance" Watch "Improving Graphics Drawing Performance" New topic

Improving Graphics Drawing Performance

Tim Berett
Ranch Hand

Joined: Jun 14, 2002
Posts: 35
Hi all,

I have a third party software (anyone familiar with ArcGIS Engine for Java?) that plots stuff on my awt frame. The problem is that some of the animation is excruciating slow. It seems to draw using some GDI+ apis which is hogging my cpu cycles instead of my graphics card. Is there anyone who knows how to improve GDI+ performance for my application? Thanks.
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

Please don't post the same question to more than one forum. See here for an explanation of why I just deleted the other copy of this thread.

In any case, does this package include native libraries? Java programs can't pick and choose from native platform APIs; they just have to use whatever the JVM uses to implement the standard Java libraries.

Use the newest JVM you can; recent Java releases include more use of graphics card acceleration of Java2D calls.

[Jess in Action][AskingGoodQuestions]
Tim Berett
Ranch Hand

Joined: Jun 14, 2002
Posts: 35

Yes, the package includes some underlying native libraries. It does this using JIntegra. I'm new to these graphics drawing stuff. Is the drawing done soley by Java? Why is it that it uses GDI+ calls instead of using my graphics card? Thanks.
I agree. Here's the link:
subject: Improving Graphics Drawing Performance
It's not a secret anymore!