Speeding Up Java Graphics (JVM)

Knute Johnson knute at frazmtn.com
Sat Jan 7 07:29:18 UTC 2006


Brian:

Since you weren't specific about your program it is hard to give you 
exact answers.  But if your performance issues are related to the 
speed at which you can present images on the video screen there are a 
few things you can do.  Use a VolatileImage or active rendering, 
minimize the redraws on your images to save processor time, remove 
anti-aliasing if you are using it for text rendering, reduce the 
color density and if your application allows, fullscreen exclusive 
mode is also a possibility.

I did a rather large job a few years back where I had to scroll large 
images up the screen.  We used three 4 port video cards and would 
scroll 8 screens simultaneously.  This required the use of 
VolatileImages.  The repaints were done with paintImmediately() in a 
javax.swing.Timer.  I'm working on a new project that has to do 
similar scrolling and am having some problems getting the kind of 
performance out of the 1.5 compiler that we were getting with the 1.4 
compiler.  I don't know exactly what is different but there is 
something funny going on.

knute...

>I know this is the Fedora, not Java list; but I'm not getting any help
>over there!
>
>Speaking from a hardware standpoint, we distribute our systems on Dell
>PowerEdge 1800 Server machines and we're limited (by our own hardware)
>to 512MB RAM.  It stands to reason that these machines don't have very
>beefy graphics support in them.  Low end nVidia or ATI chipsets at best!
>
>We're doing some work in Java, running under Sun's JVM and driving the
>graphics card with images while the CPU is at a decent load.  As our
>images grow in size the drawing slows down.  The 640x480 stuff is good,
>the 1280x1280 stuff is alright but the 2048x2048 is unusable.  
>
>>From a hardware / (operating system) software standpoint, what would you
>do to speed things up?  I can't add memory; we don't have any open slots
>to add in another graphics card and using a workstation model machine
>with better graphics isn't a choice either.
>
>Any ideas???
>
>TIA,
>
>-brian
>
>Brian D. McGrew { brian at visionpro.com || brian at doubledimension.com }
>--
>> Those of you who think you know it all,
>  really annoy those of us who do! 
>
>
>-- 
>fedora-list mailing list
>fedora-list at redhat.com
>To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>
>

-- 
Knute Johnson
Molon Labe...






More information about the fedora-list mailing list